Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop end of line in WebStorm

Tags:

webstorm

I'm trying WebStorm editor (currently use vim).

And I noticed I cannot tell where the end of the line is, because you can literally move your cursor beyond the end of the line in the code editor.

I find this very frustrating. I use to be able to know for certain where the end of the line was in vi.

Is there a way to force the cursor to go to next line when I reach the end of a line and move to the right?

like image 415
chovy Avatar asked Apr 25 '13 19:04

chovy


2 Answers

As WebStorm is based on the IntelliJ IDEA platform, this answer is also valid for WebStorm.

File | Settings (or Preferences on Mac) | Editor | Allow placement of caret after end of line.

like image 133
CrazyCoder Avatar answered Sep 28 '22 01:09

CrazyCoder


WebStorm 11

By default, the caret is not allowed after the end of the line.

If this check box was already checked, it can be unchecked in 2 different ways:

  1. File > Settings... > Editor > General > uncheck "Allow placement of caret after end of line" (in the Virtual Space section)

    enter image description here enter image description here

  2. Press Ctrl+Shift+A or go to Help > Find Action...:

    enter image description here

    Type "Allow placement", choose the "Virtual Space: Allow placement of caret after..." line and click on the switch button to have OFF instead of ON. If you cannot see the whole description, you can put the mouse over the line.

    enter image description here

like image 39
ROMANIA_engineer Avatar answered Sep 28 '22 01:09

ROMANIA_engineer