chovy
chovy

Reputation: 75676

How to stop end of line in 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?

Upvotes: 7

Views: 2761

Answers (2)

ROMANIA_engineer
ROMANIA_engineer

Reputation: 56636

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

Upvotes: 1

CrazyCoder
CrazyCoder

Reputation: 401975

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.

Upvotes: 18

Related Questions