Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I reassign F5 in Visual Studio?

Can I make it so that F5 doesn't "run" in VS any more? I'm too used to running queries in SSMS and then moving to VS and running my project when I'm not ready.

A case of Premature Execution?

like image 569
Rob Farley Avatar asked Oct 27 '09 10:10

Rob Farley


People also ask

How do I change the shortcut code in Visual Studio?

Advanced customization# To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.json file where you can overwrite the Default Keyboard Shortcuts.

What is Ctrl F5 in Visual Studio?

F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.

Why F5 is not working in Vscode?

The reason for not showing up the Extension Development Host window by pressing F5 in the first place is because my VS code workspace is not inside the project directory. The project directory contains the setup for launching the Extension Development Host window in launch.

What is F12 in Visual Studio?

F12: Open File - Visual Studio Marketplace.


2 Answers

Go to Tools|Options, then select Keyboard under the Environment tree. In the listbox in the window, locate the Debug.Start command - you should see that it is mapped to the F5 key.

Click the Remove button to unmap the key.

like image 62
PhilPursglove Avatar answered Sep 25 '22 17:09

PhilPursglove


Tools -> Options -> Environment -> keyboard

then below "Show commands containing" label type 'debug.start' w/o quotes

like image 23
Ilya Khaprov Avatar answered Sep 24 '22 17:09

Ilya Khaprov