Keyboard Shortcuts for the New NAV Development Environment

  9 minute read

The following table provides an overview of some of the shortcut key combinations that you can use when you’re working with Dynamics NAV in Visual Studio Code. For a complete overview, see </font>[Key Bindings for Visual Studio Code](https://code.visualstudio.com/docs/customization/keybindings)</p> <p class="MsoNormal" style="margin: 15pt 0in 7.5pt; line-height: normal; mso-outline-level: 2;">Editing</p> <table class="MsoTableGrid" style="border: currentcolor; border-image: none; line-height: normal; border-collapse: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" border="1" cellspacing="0" cellpadding="0"> <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"> <td valign="top" style="padding: 0in 5.4pt; border: 1pt solid windowtext; border-image: none; mso-border-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">**Keyboard Shortcut</p> <td valign="top" style="border-width: 1pt 1pt 1pt medium; border-style: solid solid solid none; border-color: windowtext windowtext windowtext currentcolor; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Action**</p> <tr style="mso-yfti-irow: 1;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+Space</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Look up suggestions for the current object</p> <tr style="mso-yfti-irow: 2;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+X</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Cut</p> <tr style="mso-yfti-irow: 3;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+C</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Copy</p> <tr style="mso-yfti-irow: 4;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+V</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Paste</p> <tr style="mso-yfti-irow: 5;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+F2</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Select all occurrences</p> <tr style="mso-yfti-irow: 6;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">F12</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Go to definition</p> <tr style="mso-yfti-irow: 7;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Alt+F12</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Peek definition</p> <tr style="mso-yfti-irow: 8;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Shift+F12</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Show References</p> <tr style="mso-yfti-irow: 9;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+Shift+Space</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Look up parameter hints</p> <tr style="mso-yfti-irow: 10;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+K Ctrl+C</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Add line comment</p> <tr style="mso-yfti-irow: 11;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+K Ctrl+U</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Remove line comment</p> <tr style="mso-yfti-irow: 12; mso-yfti-lastrow: yes;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor windowtext windowtext; padding: 0in 5.4pt; border-image: none; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Ctrl+Shift+P</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor windowtext windowtext currentcolor; padding: 0in 5.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Show All Commands</p> <p class="MsoNormal" style="margin: 15pt 0in 7.5pt; line-height: normal; mso-outline-level: 2;">Errors</p> <table class="MsoTable15Grid1LightAccent1" style="border: currentcolor; border-image: none; line-height: normal; border-collapse: collapse; mso-border-alt: solid #bdd6ee .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-themecolor: accent1; mso-border-themetint: 102;" border="1" cellspacing="0" cellpadding="0"> <tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; mso-yfti-lastfirstrow: yes;"> <td valign="top" style="border-width: 1pt 1pt 1.5pt; border-style: solid; border-color: rgb(189, 214, 238) rgb(189, 214, 238) rgb(156, 194, 229); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 153; mso-border-bottom-alt: solid #9cc2e5 1.5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 5;">**Keyboard Shortcut</p> <td valign="top" style="border-width: 1pt 1pt 1.5pt medium; border-style: solid solid solid none; border-color: rgb(189, 214, 238) rgb(189, 214, 238) rgb(156, 194, 229) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 153; mso-border-bottom-alt: solid #9cc2e5 1.5pt; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 1;">Action</p> <tr style="mso-yfti-irow: 0;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 4;">F8**</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Move to the next error or warning</p> <tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 4;">**Shift+F8**</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Move to the previous error or warning</p> <p class="MsoNormal" style="margin: 15pt 0in 7.5pt; line-height: normal; mso-outline-level: 2;">Compile</p> <table class="MsoTable15Grid1LightAccent1" style="border: currentcolor; border-image: none; line-height: normal; border-collapse: collapse; mso-border-alt: solid #bdd6ee .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-themecolor: accent1; mso-border-themetint: 102;" border="1" cellspacing="0" cellpadding="0"> <tr style="mso-yfti-irow: -1; mso-yfti-firstrow: yes; mso-yfti-lastfirstrow: yes;"> <td valign="top" style="border-width: 1pt 1pt 1.5pt; border-style: solid; border-color: rgb(189, 214, 238) rgb(189, 214, 238) rgb(156, 194, 229); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 153; mso-border-bottom-alt: solid #9cc2e5 1.5pt;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 5;">**Keyboard Shortcut</p> <td valign="top" style="border-width: 1pt 1pt 1.5pt medium; border-style: solid solid solid none; border-color: rgb(189, 214, 238) rgb(189, 214, 238) rgb(156, 194, 229) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 153; mso-border-bottom-alt: solid #9cc2e5 1.5pt; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 1;">Action</p> <tr style="mso-yfti-irow: 0;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 4;">Ctrl+Shift+B**</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Compile and build the solution</p> <tr style="mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td valign="top" style="border-width: medium 1pt 1pt; border-style: none solid solid; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238); padding: 0in 5.4pt; border-image: none; mso-border-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal; mso-yfti-cnfc: 4;">**F5**</p> <td valign="top" style="border-width: medium 1pt 1pt medium; border-style: none solid solid none; border-color: currentcolor rgb(189, 214, 238) rgb(189, 214, 238) currentcolor; padding: 0in 5.4pt; mso-border-alt: solid #bdd6ee .5pt; mso-border-left-alt: solid #bdd6ee .5pt; mso-border-top-alt: solid #bdd6ee .5pt; mso-border-themecolor: accent1; mso-border-themetint: 102; mso-border-bottom-themecolor: accent1; mso-border-bottom-themetint: 102; mso-border-top-themecolor: accent1; mso-border-top-themetint: 102; mso-border-right-themecolor: accent1; mso-border-right-themetint: 102; mso-border-left-themecolor: accent1; mso-border-left-themetint: 102;"> <p class="MsoNormal" style="margin: 0in 0in 0pt; line-height: normal;">Build and deploy</p> <p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 12pt;">
</p><p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 12pt;">(Source: https://msdn.microsoft.com/en-us/dynamics-nav/newdev-keyboard-shortcuts)</p><p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 12pt;">
</p><p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 12pt;">Do you have any other shortcuts or suggestions? Please let me know in the comments below.</p>

Leave a comment