In IntelliJ (just like in Eclipse) there is a thin grey vertical line in the code editor. I assume that just like in Eclipse, the line is showing where the "end of line" is supposed to be.
2 questions: 1) Where do you adjust how long a line is allowed to be in IntelliJ? 2) If not using the exact same property from #1, where do you adjust where the line is shown in the editor?
Thanks!
While in the editor, select the necessary code fragment and press Ctrl+Alt+I . If you need to adjust indentation settings, in the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style. On the appropriate language page, on the Tabs and Indents tab, specify the appropriate indents options and click OK.
Moving Content Up or Down in Your Class With your caret on a line, you can press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. Alternatively, you can move a line down with ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux). The same shortcut can move a selection up or down.
Ctrl + Shift + M will toggle you between the starting and closing parentheses.
With IntelliJ IDEA, you can set up line separators (line endings) for newly created files, and change line separator style for existing files. In the Settings/Preferences dialog (Ctrl+Alt+S), go to . From the Line separator list, select the desired line separator style.
Line breakpoints. Line breakpoints can be set on executable lines of code. Thread execution is suspended before the line with such breakpoint, and IntelliJ IDEA displays the stack frames on that thread's stack. Place the caret at an executable line of code where you want to set a breakpoint.
Shortcut Action; Double Shift: Search Everywhere. Quickly find any file, action, symbol, tool window, or setting in IntelliJ IDEA, in your project, and in the current Git repository. Ctrl+Shift+A: Find Action. Find a command and execute it, open a tool window, or search for a setting. Alt+Enter: Show Context Actions
Learn shortcuts as you work. IntelliJ IDEA provides several possibilities to learn shortcuts: Find Action is the most important command that enables you to search for commands and settings across all menus and tools. Press Ctrl+Shift+A and start typing to get a list of suggested actions.
Go to Settings -> Editor -> Code Style -> Right Margin (columns).
For IntelliJ 14 users:
In IDE Settings, Editor -> General -> Appearance, uncheck show right margin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With