James Raitsev
James Raitsev

Reputation: 96391

How to force IntelliJ editor to restrict line length?

I have a text file that looks like:

a=12
 b=13
 c=14
 d =15
 e = 16
 f = 17

Some of the numbers have spaces after them. Some don't. Some have tabs etc.

It seems that when i am in InteliJ's editor any place i click on is well .. clickable.

How can i restrict it by actual line length?

enter image description here

Upvotes: 1

Views: 2420

Answers (2)

Settings -> Editor -> Allow placement of caret after end of line.

Upvotes: 4

duffymo
duffymo

Reputation: 308763

You can set the global code style to do things like put spaces around the assignment operator, and then do a global "reformat code" by selected text, file, or entire project.

I use IntelliJ 12:

enter image description here

Upvotes: 0

Related Questions