IntelliJ code wrapper?

How could one label a word wrap, for example, as a sublime text? that is, if the line of code is too long, it should automatically be split into the next line. wikipedia.org.org/Word_wrap

This code should be wrapped out

+62
code-formatting intellij-idea
Apr 11 '14 at 5:53 on
source share
5 answers

I think "soft wrap" might be what you need. It is read-only, i.e. It does not change the characters in the file, it only wraps what you see on the screen.

settings Intellij> = 14.1.4: As indicated by the looper in the comments, the parameters are under File> Settings> Editor> General - in the Virtual Space subgroup.

Intellij <14.1.4: Look under File> Settings> Editor> Virtual Space . It does not have a default shortcut, but it can be assigned in a layout.

AndroidStudio> = 1.4.1: the options are under File> Settings> Editor> General - under the Softcover subgroup.

You can also right-click on the gutter (the vertical bar where the line number is shown), and select "Use soft wrappers" - thanks Bajal for the comment. soft cover gutter

+94
Apr 14 '14 at 23:34
source share

[ctrl + alt + s] or File-> to open the settings dialog.

Search for code style. its project parameters.

Code style general check

wrap when typing reaches margin 

This will give you a code wrapper.

+9
Apr 11 '14 at 8:53
source share

In Community Edition, do the following:

File -> Preferences -> Editor -> Code Style -> Java

Click on the Wrap and Snap tab.

Set the option "Right margin (columns)" with the number of columns that you would like to use as a line break point. Set "Wrap on typing" to "YES".

Remember to apply the changes before clicking OK.

+4
Apr 7 '16 at 16:22
source share

(In Community Edition 2016+) go: IntelliJ IDEA> Settings> Editor> General: select the option "Use soft wrappers in the editor" and "Use original indent for wrapped parts"

+2
Apr 01 '16 at 23:20
source share

OS X 10.8 IntelliJ Idea 15.0.5: IntelliJ IDEA Menu / Preferences / Editor / General / Soft Wraps

+1
Apr 20 '16 at 5:18
source share



All Articles