Tips for Visual Studio IDE (package and download)

Source: Internet
Author: User
Tags visual studio 2010

 

I have seen two articles in Visual Studio 2010 Summary of practical functions, which are favored by everyone. I also want to add some practical tips for Visual Studio.

 

1. Visual Studio color scheme.

If you want your editor to display in another style, you can set the font and color in the tool-> options->, but the best way is to download the selected 6 sets of color schemes.

Select tool> Import and Export settings, and set as prompted.

 

 

2. Code segment

Press Ctrl + K + S or Ctrl + K + X to display the code snippet prompt. You can select the desired code segment and press enter to generate it. You can also directly enter the quick abbreviation of the code segment and press TAB to generate the code twice. For example, if you enter foreach, two-click tabs will automatically generate code. You can download C #'s official expanded code snippet package here. You can also search for code snippet packages edited by netizens on the Internet. Http://snippetlibcsharp.codeplex.com/is a nice extension. Of course, you can edit your own code segment. You do not need to understand the XML syntax for describing code segments. You only need to download this ready-made code snippet editing tool. I'm glad it is provided as a VS plug-in. I'm glad that this tool is open-source. Use the Code snippet you downloaded or edited, and decompress it to the \ Visual Studio 2XXX \ Code Snippets \ Visual C # directory. You can also import the data in tool> code snippet manager. (My IDE tool menu does not exist. I can only press Ctrl + k + B)

3. If you are not using VS2010, you cannot use the extended management functions of VS2010-> Tools-> Extension Manager. But you can alsoVisual Studio LibraryFind 1,789 extended projects. To develop extensions on your own, follow my Visual Studio extended programming-#0: how to get started! More resources are introduced in the series (just started.

 

4. Other Tips

When you edit HTML, the attribute value quotation marks are automatically inserted:

 

Here, you can set the automatic typographical format. You can customize the indentation and whether the braces are after the method brackets by default. You can download all the IDE settings. Then use the tool> Import and Export settings to import it.

Another code segment is selected: drag the text byte in any editor to the toolbox and drag it down as needed.

 

5. Add "blog garden essence area" to the Visual Studio start page

If you are a developer and often use VS, and often log on to the blog Park, you may like this. Every time you open VS, you can easily see what articles are updated on the current homepage of the blog Park. You will get the effect.

 

To do this, we only need to make a simple setting.

Open the tool-options window and navigate to environment-startup Item. And then click OK.

It's just a little trick, but it's useful.

Appendix :( VS general system Shortcut Keys :)

1. Automatic Layout (similar to Alt + F8 in VC6)
Edit. format the selected content Ctrl + K, Ctrl + F according to the surrounding code lines, correctly indent the selected code lines.

2. Comment out and remove the comment function.
Edit. Comment the selected content Ctrl + K, Ctrl + C mark the current line of the Code as a comment using the correct annotation syntax of the programming language.
Edit. uncomment the selected content Ctrl + K, Ctrl + U to remove the comment syntax from the current line of the Code.
Move the insertion point to the next braces in the document.
Edit. Move to braces Ctrl +] to move the insertion point to the next braces in the document.
Edit. Scroll down a line Ctrl + down key to scroll down a line of text. It can only be used in a text editor.
Edit. Scroll up a line Ctrl + up key to scroll up a line of text. It can only be used in a text editor.

3. How to find a solution
View. Solution Explorer Ctrl + Alt + L display Solution Explorer, which lists projects and files in the current solution

4. display the toolbox"
View. The toolkit Ctrl + Alt + X displays the Toolkit, which contains controls and other items that can be included in or used with the code.

5. Clear all breakpoints in the project
Debug. Delete All Breakpoints Ctrl + Shift + F9 clear all breakpoints in the project.

Debug. Disassemble Ctrl + Alt + D to display the "Disassemble" window.
Debug. Switch the breakpoint F9 to set or remove the breakpoint in the current line.
**************************************** *******
Shortcut for VS2008
Create Project Ctrl + shift + N
Create a website shift + Alt + N
File Ctrl + N
Open Project/solution Ctrl + shift + O
Open the website shift + Alt + O
Open the file Ctrl + O
Save the current file Ctrl + S
Save all Ctrl + Shift + S
Add new item Ctrl + Shift +
Add existing item Shift + Alt +
Add Shift + Alt + C
Undo Ctrl + Z
Repeat Ctrl + Y
Go to Ctrl + G
Apply duplicate items in the clipboard in a loop Ctrl + Shift + V
Set the document format Ctrl + E, D
Set the format of the selected content Ctrl + E, F
Convert to uppercase Ctrl + Shift + U
Convert to lower case Ctrl + U
Delete horizontal blank Ctrl + E ,\
View blank Ctrl + E, S
Automatically wrap Ctrl + E, W
Progressive search Ctrl + I
Comment the selected content Ctrl + E, C
Uncomment selected content Ctrl + E, U
Quick Search for Ctrl + F
Quick replacement of Ctrl + H
Find Ctrl + Shift + F in the file
Find Next F3
Find the previous Shift + F3
Replace Ctrl + Shift + H in the file
Search for the Alt + F12 symbol
Switch bookmarks Ctrl + B, T
Enable bookmarks Ctrl + B, E
Ctrl + B, P
Next bookmarks Ctrl + B, N
Clear bookmarks Ctrl + B, C
Shortcut for adding a task list: Ctrl + E, T
Switch outline display expand Ctrl + M, M
Switch to Ctrl + M, L for all outlines
Stop outline display Ctrl + M, P
Fold to define Ctrl + M, O
Production Method stub Ctrl + K, M
List Members Ctrl + K, L
Parameter information Ctrl + K, P
Quick information Ctrl + K, I
Ctrl + K, W
Insert code segment Ctrl + K, X
External code Ctrl + K, S
Code F7
Designer Shift + F7
Server Resource Manager Ctrl + W, L
Solution Resource Manager Ctrl + W, S
Class View Ctrl + W, c
Code definition window Ctrl + W, D
Object Browser Ctrl + W, J
Error List Ctrl + W, E
Output Ctrl + W, O
Property Window Ctrl + W, P
Task List Ctrl + W, T
Toolbox Ctrl + W, X
Full Screen Display shift + Alt + Enter
Move Ctrl +-
Forward positioning Ctrl + Shift +-
Attribute page Shift + F4
Ctrl + W, Q
Bookmark window Ctrl + W, B
Command window Ctrl + W,
Document outline Ctrl + W, U
Resource view Ctrl + W, R
Macro Resource Manager Alt + F8
Web browser Ctrl + W, W
Rename F2
Extraction Method Ctrl + R, M
Encapsulation field Ctrl + R, E
Extract interface Ctrl + R, I
Raise the local variable to the Ctrl + R, P parameter.
Remove the Ctrl + R, V parameters.
Rearrange the Ctrl + R, O Parameters
Generate solution F6
Generate the current project Shift + F6
Start debugging F5
Continue F5
Ctrl + Alt + Break
Stop debugging Shift + F5
Restart Ctrl + Shift + F5
Start executing (not debugging) Ctrl + F5
Exception Ctrl + D, E
Statement by statement F11
Jump out of Shift + F11
Process by process F10
Switch breakpoint F9
Delete all breakpoints Ctrl + Shift + F9
Breakpoint Ctrl + D, B
Instant Ctrl + D, I
Fast monitoring Ctrl + D, Q
Monitor 1 Ctrl + D, W
Monitor 2 Ctrl + D + W, 2
Monitoring 3 Ctrl + D + W, 3
Monitoring 4 Ctrl + D + W, 4
Automatic window Ctrl + D,
Local variables Ctrl + D, L
Call Stack Ctrl + D, C
Thread Ctrl + D, T
Switch the current thread flag status Ctrl + 8
Display only the mark of the thread Ctrl + 9
Module Ctrl + D, M
Process Ctrl + D, P
Decompile Ctrl + Alt + D
Register Ctrl + D, R
Memory 1 Ctrl + D, Y
Memory 2 Ctrl + Alt + M, 2
Memory 3 Ctrl + Alt + M, 3
Memory 4 Ctrl + Alt + M, 4
Attach to process Ctrl + Alt + P
Code snippet manager Ctrl + K, Ctrl + B
Run the macro Ctrl + Shift + P
Record when front macro Ctrl + Shift + R
Macro IDE Alt + F11
Test Ctrl + R, T in the current context
All tests in solution Ctrl + R,
How to Implement Ctrl + F1, H
Search Ctrl + F1, S
Directory Ctrl + F1, C
Index Ctrl + F1, I
Help favorites Ctrl + F1, F
Dynamic help Ctrl + F1, D
Index result Ctrl + F1, T

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.