Difference between revisions of "Visual Studio keys"

From Jens' Hjørne
Jump to navigationJump to search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Moving & Searching==
+
==Navigating & Searching==
 
{|
 
{|
!align="left"|Key!! !!align="left"|Function!! !!align="left"|MSSMS
+
!align="left"|Key!! !!align="left"|Function!! !!align="left"|SSMS!! !!align="left"|Comment
 
|-
 
|-
|<Ctrl>+¨||&nbsp;||Search Solution Explorer (in filenames)||&nbsp;||N/A
+
|<Ctrl>+¨||&nbsp;||Search Solution Explorer (in filenames)||&nbsp;||N/A||&nbsp;||
 +
|-
 +
|F12||&nbsp;||Go to definition or implementation||&nbsp;||N/A||&nbsp;||Whether you're taken to declaration or implementation depend on if it's implemented through an interface or not.
 +
|-
 +
|<Shift>+F12||&nbsp;||Find usages||&nbsp;||N/A||&nbsp;||ReSharper functionality
 +
|-
 +
|<Ctrl>+<Minus key>||&nbsp;||Navigate backwards||&nbsp;||N/A||&nbsp;||
 +
|-
 +
|<Ctrl>+<Shift>+<Minus key>||&nbsp;||Navigate forwards||&nbsp;||N/A||&nbsp;||
 
|}
 
|}
  
 
==Editing==
 
==Editing==
 
{|
 
{|
!align="left"|Key!!&nbsp;!!align="left"|Function!!&nbsp;!!align="center"|MSSMS
+
!align="left"|Key!!&nbsp;!!align="left"|Function!!&nbsp;!!align="center"|SSMS
 
|-
 
|-
 
|<Alt>+<Shift>+<Arrow keys>||&nbsp;||Highlight rectangular block||&nbsp;||align="center"|+
 
|<Alt>+<Shift>+<Arrow keys>||&nbsp;||Highlight rectangular block||&nbsp;||align="center"|+
Line 25: Line 33:
 
|-
 
|-
 
|<Ctrl>+K, <Ctrl>+F||&nbsp;||Format selection||&nbsp;||
 
|<Ctrl>+K, <Ctrl>+F||&nbsp;||Format selection||&nbsp;||
 +
|-
 +
|<Ctrl>+R, R||&nbsp;||Refactor -> Rename||&nbsp;||
 
|}
 
|}
 +
 +
https://weblogs.asp.net/scottgu/search-and-navigation-tips-tricks-with-visual-studio
  
 
[[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]]
 
[[Category:Værktøjer, Programmering]][[Category:Keyboard shortcuts]]

Latest revision as of 14:25, 12 October 2016

Navigating & Searching

Key   Function   SSMS   Comment
<Ctrl>+¨   Search Solution Explorer (in filenames)   N/A  
F12   Go to definition or implementation   N/A   Whether you're taken to declaration or implementation depend on if it's implemented through an interface or not.
<Shift>+F12   Find usages   N/A   ReSharper functionality
<Ctrl>+<Minus key>   Navigate backwards   N/A  
<Ctrl>+<Shift>+<Minus key>   Navigate forwards   N/A  

Editing

Key   Function   SSMS
<Alt>+<Shift>+<Arrow keys>   Highlight rectangular block   +
<Tab>   Indent highlighted block   +
<Ctrl>+K, <Ctrl>+D   Fix indentation for current file  
<Shift>+<Tab>   Unindent highlighted block   +
<Ctrl>+K, <Ctrl>+C   Comment highlighted block   +
<Ctrl>+K, <Ctrl>+U   Uncomment highlighted block   +
<Ctrl>+E, D   Format document  
<Ctrl>+K, <Ctrl>+F   Format selection  
<Ctrl>+R, R   Refactor -> Rename  

https://weblogs.asp.net/scottgu/search-and-navigation-tips-tricks-with-visual-studio