Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Visual Studio shortcut keys?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about what Visual Studio shortcuts have. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Shortcut key

◆ F7: switch between design view and code view.

◆ F9: toggles breakpoints.

◆ F12: go to a variable, object, or function definition.

◆ Ctrl+Shift+7 and Ctrl+Shift+8: quickly navigate forward and backward in the go to definition stack.

◆ Shift+F12: find all references to a function or variable.

◆ Ctrl+M, Ctrl+M: expand and collapse the snippet structure in the editor.

◆ Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U: used to comment and uncomment lines of code, respectively.

◆ Shift+Alt+Enter: switch between full screen mode and normal mode.

◆ Ctrl+I: progressive search.

Most developers don't know this, but in fact, Visual Studio provides more than 450 keyboard shortcuts by default. However, there is no easy way to find all the Visual Studio shortcuts. You can write a simple macro that iterates through all the default shortcuts to find their corresponding actions. The code for this macro is listed below.

Public Module Module1

Public Sub ListShortcutsInHTML ()

'Declare a StreamWriter

Public Sub WriteHTMLStart (ByVal sw As System.IO.StreamWriter)

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("Visual Studio Keyboard Shortcuts")

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("Visual Studio 2005 Keyboard Shortcuts")

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("Command"

Shortcut ")

End Sub

Public Sub WriteHTMLEnd (ByVal sw As System.IO.StreamWriter)

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("")

Sw.WriteLine ("")

End Sub

End Module

To use this macro, go to tools, select Macros, and then select Macro IDE. Start Macro IDE. Expand the MyMacros project, the MyMacros namespace, and then double-click Module1. Copy the contents of listing 1 to the "macro IDE" and run the macro. After running the macro, Visual Studio shortcut key reference information is generated. Open the C:\ demo\ Shortcuts.html file that contains the output. Print it out if convenient and post it near your computer to learn new Visual Studio shortcuts.

Thank you for reading! This is the end of this article on "what are the Visual Studio shortcuts?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report