DEV Community

loading...

How do I add padding lines in IntelliJ?

baenencalin profile image Calin Baenen ・1 min read

The lines are too close to the left and I want to add a padding of at least 3 or 4 pixels. How do I do this?

Also, how can I get a theme, and color-scheme similar to the one I had in VSCode, like the one here?: Dark gray bg, with colorful syntax highlighting.

And one more question, how can I have a "view" similar to VSCode, where the side-panel isn't taking up half the fucking window?

Thanks!
Cheers!

Discussion (4)

pic
Editor guide
Collapse
redcreator37 profile image
RedCreator37

Also, how can I get a theme, and color-scheme similar to the one I had in VSCode, like the one here?:

Try installing a theme plugin, like this one: Visual Studio Code Dark Plus Theme.

And one more question, how can I have a "view" similar to VSCode, where the side-panel isn't taking up half the fucking window?

Either collapse the panels (ie. click on the matching tab on the left) or drag their right edge to resize them.

About the padding thing, I don't know exactly what you want to achieve, but the line number ribbon resizes automatically when there are more icons in it: Code Ribbon

Collapse
baenencalin profile image
Calin Baenen Author

What I want by padding, is to adjust how far from the "ribbon" the text is.

Also, whenever I create a doc-comment, the start of the lines aren't aligned (i.e. it LOOKS like there's a space inserted, but not).
Is there any way to disable that?

Collapse
redcreator37 profile image
RedCreator37 • Edited

What I want by padding, is to adjust how far from the "ribbon" the text is.

If you mean indentation, you can set this in Preferences > Editor > Code Style > Java > Tabs and Indents.

identation settings

About the doc comments, the first / is indented the same as the continuing code. Try looking further in the Preferences > Editor > Code Style > Java section, it might be somewhere in there.

javadoc comment indentation

Edit: typo

Collapse
siy profile image
Sergiy Yevtushenko

Try to click on vertical tabs at left side of the app window. Usually 'Project' tab is active. Clicking on it once will close left pane and code window will expand to entire apo window.