Share via


Keyboard shortcuts (HTML and JavaScript)

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Keyboard shortcuts in Visual Studio for debugging UWP apps using HTML and JavaScript.

General shortcuts

These shortcuts work across all tools for UWP apps using HTML and JavaScript.

Action Shortcut
Refresh Windows app Ctrl+Shift+R
Restart Windows app Ctrl+Shift+F5
Stop debugging Shift+F5
Open Performance and Diagnostics Hub Alt+F2

JavaScript Console shortcuts

Use these shortcuts in the JavaScript Console window.

Action Shortcut
Run a console command Enter
Clear the console Esc
Toggle between single-line and multi-line mode Ctrl+Alt+M

DOM Explorer shortcuts

Use these shortcuts in the DOM Explorer.

Action Shortcut
Select element Ctrl+B
Toggle between displaying and hiding webpage highlight boxes when using Select Element Ctrl+Shift+I
Commit changes using Edit as HTML Ctrl+Enter
Discard changes using Edit as HTML Esc
Increase selected CSS value by 1 Up Arrow
Decrease selected CSS value by 1 Down Arrow

See also