How to make Visual Studio 2008 ignore trailing spaces when I press END?

This annoys VS2008 when I press the END key and my cursor jumps to the end outside the line of code, because I have a space-end from copy + paste or formatting.

I would like the END key to ignore spaces. How can i do this?

I thought about using AutoHotkey to catch the END keys and replace them with " CTRL+E , \ , END " ("Delete horizontal white space", under "Edit β†’ Advanced").

I would like, if possible, a less hacky solution.

+4
source share
3 answers

Well, here is my AutoHotkey script:

 SetTitleMatchMode RegEx #IfWinActive, .* - Microsoft Visual Studio End::Send {End}^e\ 

Guess I'll use this until someone answers better :)

0
source

Not the answer you want to β€œignore” on the front, but you can do ctrl + delete to remove all spaces. If not contol + shift + left arrow for highligh, then del will fix it.

Choosing the format ctrl + e, ctrl + f should remove the trailing space. According to Paul's comment

+1
source

Not exactly what you want, but by selecting the markup and doing "Format Selection", it will remove the space ...

0
source

All Articles