Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursors stays where I click in VS text editor

Sorry for question but I can't find answer anywhere on internet. I couldn't find answer myself either. Here is question:

Previously when I clicked anywhere in VS text editor cursor moved to the end of statement, just after ";". But now it stays where I click on the screen and it is really annoying. How can I address this issue. Thanks in advance.

like image 735
Adil Mammadov Avatar asked Jun 30 '12 12:06

Adil Mammadov


People also ask

Why does my mouse cursor flicker badly when using Visual Studio?

When using Visual Studio the mouse cursor flickers badly or totally disappears when the mouse pointer is in the code editing area of Visual Studio (as shown in the screenshot below).

What is a text cursor?

The cursor is that blinking line at the end of what you are typing in Windows. Have you ever had an issue finding the text cursor in the middle of a large amount of text, during a presentation, or on the screen in an educational setting?

Why does the text cursor indicator stay on the screen?

Text cursor indicator color and size might not persist when you sign in. To work around that, simply turn off and turn on the Use text cursor indicator setting again. Occasionally, you might see that the text cursor indicator stay on the screen or reappear after the app has been closed or the page contents have scrolled away.

Do you have trouble finding the text cursor in the middle?

Have you ever had an issue finding the text cursor in the middle of a large amount of text, during a presentation, or on the screen in an educational setting? Starting with Windows 10 build 18945, the new Text cursor indicator (when turned on) will help you see and find the text cursor wherever you are at any time.


1 Answers

This is called Virtual Space and can be changed in Visual Studio's options dialog.

As per the MSDN article:

To position comments beside your code

  • In the Options dialog box, expand Text Editor, and then click the General node for your development language.

  • Under Settings, select Enable virtual space.

When this option is selected and Word wrap is cleared, you can click anywhere beyond the end of a line in the Code Editor and type.

To revert to the behaviour you're after, you need to uncheck Enable virtual space either at the language level or for all languages:

Visual Studio options dialog showing unchecked virtual space setting

Also more here.

like image 158
Sir Crispalot Avatar answered Nov 15 '22 18:11

Sir Crispalot