简体   繁体   中英

How do I get my cursor to jump to the last character on a line?

这个问题并不总是存在,在VS或ReSharper中我找不到任何选项可以纠正它,但是当我使用鼠标将光标放在较短的代码行上时,我将光标放在行尾附近,它留在空白处,而不是跳回到行上的最后一个字符。

You can uncheck the option Texteditor -> All Languages -> General -> Enable virtual space in Visual Studio. This way your cursor will always be placed at the last character of a line when you click anywhere in the whitespace area at the end of a line.

Note however if your line ends with whitespaces you actually typed in , it will place the cursor after the last actual whitespace of that line. Use Ctrl + Left Arrow to jump to the last actual character of that line.

You can use Alt + Backspace to quickly delete all whitespaces at the end of a line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM