Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Visual Studio to scroll to the end of file when pressing Ctrl A (select all)

It's basically in the title.

Whenever you "select all" in the Visual Studio code editor, the editor will scroll down to the bottom of the file. Is there a way to prevent this?

I'm using Visual Studio 2008 at the moment, but this applies to all versions.

like image 310
tomcat Avatar asked Feb 01 '13 09:02

tomcat


People also ask

How do I stop Vscode vertical scrolling?

Use Ctrl + E, then Ctrl + W for disable horizontal scrolling. For more details, you can refer this cite: https://developercommunity.visualstudio.com/t/disable-horizontal-scrolling-in-visual-studio-2019/612873.

How do I stop build solution in Visual Studio?

You can hit Ctrl + Break on the keyboard to cancel/stop a build that is currently in progress.

How to Go forward in Visual Studio?

Use the "Ctrl"-"Shift"-"-" to move forward after you have used "Ctrl"-"-" to move back.

How do I select all in Visual Studio?

Select the word you want to match and press Alt+Shift+; . Visual Studio will select all the locations that match the selected text in the current document.


2 Answers

No, you cannot change this behavior.

Microsoft has been aware of this since at least VS 2010, but either doesn't think it's a bug or doesn't think it's important enough to fix.

From their response to a 2010 bug report filed on the issue:

We unfortunately do not plan to change Ctrl+A's scrolling at this time, so we're unfortunately resolving this issue as Won't Fix for VS 2010. However, it will remain in our database to be revisited for a future release of Visual Studio.

Source: Microsoft Connect

like image 121
jake Avatar answered Sep 28 '22 11:09

jake


A quick Ctrl-Z-Ctrl-Y will get you back to where you were. If you tend to do a Ctrl-S Ctrl-A Ctrl-C a lot then just get used to this whole chain instead: Ctrl-SACZY. Or, create a macro: https://msdn.microsoft.com/en-us/library/a0003t62%28v=vs.90%29.aspx

like image 27
DriveByGuy Avatar answered Sep 28 '22 12:09

DriveByGuy