Visual Studio Simple Use personal summary

Source: Internet
Author: User
Tags microsoft downloads visual studio 2010

Visual Studio Simple Use personal summary

Reprint please indicate source: WWW.CNBLOGS.COM/ICMZN (Follow-up will continue to update)

1. Understanding the file name extensions
(1). csproj
csproj file Everyone should be unfamiliar, that is the C # project file extension, which is the abbreviation for "C Sharp Project" Visual Studio will manage the project file according to the XML definition in csproj
And some other kinds of very rich data and operations, compile this project need to have what dependencies, the default output path, pre-build and post-build need to what actions and so on
(2) for solution files with the suffix. sln, the channel opens the project/solution for the project to be opened.
2. Some understanding of the version
(1) Express Editions: Express version, can be understood as special edition, Lite version. He is a lightweight IDE that contains basic functionality, but not as powerful as the full version;
3. Types of development that can be supported
C # Visual Basic, C + +,
Windows Phone, SQL Server, server.
3. General version control of some software
(1) In Windows, for example, Windows 7 contains 6 versions, Windows 7 Starter (primary edition), Windows 7 Home Basic (Home), Windows 7 Home Premium (home
Windows 7 Professional (Professional Edition), Windows 7 Enterprise (Corporate Edition), and Windows7 Ultimate (Ultimate Edition).
Microsoft Downloads for various products:
Https://www.visualstudio.com/downloads/download-visual-studio-vs
4.lnk1123: Failure during transition to COFF: invalid or corrupt file
This error occurs when compiling a C + + project with VS2010:
(1) Solution one
is an embedded inventory issue, so the project and all dependent projects are as follows:
Built-in list, input and output, list tools, project properties, right-click, select [No]
1>link:fatal Error LNK1123: Failed during transition to COFF: invalid or corrupt file
1>cvtres:fatal Error CVT1100: Resource duplication. Type: MANIFEST, Name: 1, Language: 0x0409
This is caused by a log file, which can be
Project \ properties \ Configuration properties \ manifest tools \ input and output \ Embed list: The original is "yes" and changed to "no".
(2) Solution 2
Project \ properties \ configuration properties \ linker \ manifest file \ Generate manifest: The original is "yes" and changed to "no".
(3) This method is better
Copy the C:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb_b03f5f7f11d50a3a_6.1.7601.17514_none_ba1c770af0b2031b directory under the Cvtres.exe to C:
\program Files\Microsoft Visual Studio 10.0\vc\bin directory, direct overwrite replace.
4. Common Shortcut Tips
(1) Ctrl + TAB can be toggled on the Edit menu page, and the existing window directly to select processing;
Most useful, it is very convenient to jump back and forth between windows.
SHIFT + TAB key to switch between spaces in the UI interface.
(2) ALT + F9 output port debug Breakpoint window;
(3) Shif + ALT + ENTER: Change or restore the current editing page;
(4) Ctrl + SHIFT + N: Open Project Dialog to add new items;
(5) Ctrl + SHIFT + O: Open the Project or Solution dialog box;
(6) Alter + ENTER: Open Properties Control Panel (window)
(7) F5 start debugging
(8) Press CTRL + SCROLL wheel to enlarge or reduce the font size of the edit box
5. One solution allows multiple projects to be placed
6. Export the current environment settings of visual studial to a file so that you can import the file into any one of your brain.
Thus the current environment is unchanged. After setting your own style, the file can be preserved in the current environment.
7. Two versions of the release content differences:
Debug Build:
Release Build:
8. Visual Studio 2010 can be used as the following editor:
C + +, VisualBasic, C #, CSS, F #;
Html,jscript,pl/sql, Plain text,
XML, XAML, XOML, Transaction
9. Debugging related
CTRL + F5: Start execution (not in, line debugging);
F5: Start debugging, and execute;
10 Tools Options Text Editor: Allows you to personalize different editors
(1) Tools Options Environment font and color: You can adjust the color of the editor, etc.
(2) Set the color of text editing Beijing, set the color of matching brackets, etc.
11. Formatting your code Visual Studio 2010
(1) Edit "Advanced" view blank shortcut key: Ctrl+r in the press CTRL+W, you can display blank or not display blank;
(2) Speak the selected code into uppercase: CTRL + SHIFT +u;
Say the selected code is converted to lowercase: Ctrl + U
(3) Log off the selected content line, use//, CTRL + K at Ctrl + C, you can
Cancels the comment representation symbol for the selected line: Ctrl + K, when you press CTRL + U, that is, press CTRL while pressing K, at the Press of U
(4) Editor intelgence:visual Studio2010 can intelligently generate general operations such as build:
Constructors, generating enumeration classes, etc... (IMPORTANT * *)
(5) Edit outline view: Just show the prototype of the method, the implementation of the method is hidden
Shortcut: CTRL + M and CTRL + O, open outline view, i.e. code folding;
Expand outline view: Ctrl + M, and CTRL + L, close outline view, and the code expands.
(6) According to the Rules tool "text editing" C + +, after design rules,
Valid for C # code, no effect on C + +
To format this document file: Ctrl+m and Ctrl + D
12. Navigate Your amount code---"Pick and choose" between editing documents
(1) Use
#regoin Hide This Code
#endregion, surround you with code that won't be used, and this piece of code is folded together
(2) on the left "scroll bar" of the Edit menu, there is an "extended new window" To quickly display the document currently being edited in two windows for easy viewing of the previous content, "double click" in the middle of the

Horizontal line, which is another window and disappears.
(3) on the hover "data type (Class)" Above, press F12, then jump to the corresponding "tired definition file";
Press: Ctrl + TAB, the default switch to the previous "Edit File" page, which is very convenient to view the code;
(4) Press F12 on the top of the variable, then jump to the definition of the variable;
(5) at "Code Place", you can also navigate the code by right mouse button nice!!!
(6) using "bookmark" bookmark to jump between "code",
such as: Press CTRL + K, then CTRL + K, then add a bookmark at the current position, so press SHIFT + F2, challenge the previous bookmark, or press F2 to jump to the next bookmark code
and press both bookmarks: Ctrl+k,ctrl+k, which cancels the current bookmark
Or use the toolbar above: directly with the mouse action "cancel/Set the current bookmark" "Jump to the previous bookmark" "Jump to the next bookmark"
You can also use
(7) Through the View: Forward navigation, backward navigation implementation of the edit page between the jump
Shortcut: Ctrl +-, forward challenge; CTRL + SHIFT +--jump backwards
For example: See all references to "variable" or "method";
13. Using the Task List
(1) Open "Todo View": View "Other views" task List
Select the "comment" type of TODO,
Todo This is a todo comment form of Todo, then the content of the second Todo is added to the "task List"
Add the task type method:
Tools Options Environment Task List TODO lists add bugs and set different weights;
Default "task type": Todo,undone,hack, all normal weights unresolvedmergeconflict (unresolved conflicts): Permissions
Added: BUG, high privilege
This allows you to add a high-privilege task with the comment://bug
Add the above at the code point
14. How to Annotate code
(1) Comment on the selected line of code:
CTRL + K, and CTRL + C; Add comments
CTRL + K, and CTRL + U; remove symbols for numeric values
15. How to document code, API
(1) Omit
16. Use the visual studial "Auto-smart Tool" to write code:
(1) When creating a new object that does not exist, the mouse is placed on the type, prompting "to create a new class, or a struct type"
Select the appropriate type rule, create a new file in the current location, and then, VS will "auto smart" to create such a type.
(2) When writing a "class", you can directly hit the "type name" of the first capital letter, "Auto smart" jump out of the type
0507 working with Code Snippets
(1) on some commonly used code fragments, such as for,while,if two times after the "tab" key, then visual Studio will automatically complete the structure of this "code" fragment;
17. Refactoring Code Hot Factoring
(1) The name of the transformation variable, right key to the variable, "refactoring" "rename" according to the option to update all references to the name of the second variable;
Or use the shortcut: CTRL + R and CTRL + R;
The same can be used in: "Function name" refactoring changes, want to affect the location of the definition and the relevant reference location;
(2) Change the parameter order of the member function refactoring, click on the member contains "mail," Hot factoring "" Arguments order Change "adjustment, you can enjoy the relevant position to order,
This will be displayed and replaced in the preview window at the program definition and at the relevant reference.
Or use the shortcut: CTRL + R and CTRL + O;
(3) You can view the various areas of the display devexpress, need to install;
(4) The code can also regenerate the interface form, need to go through their own research, similar to the Java syntax, C + + can also be re-formed interface form;
17. Using the Class View design class and Class View Tools
(1) Generation Class View display: View Class View
Or use the shortcut: Ctrl + Shift + C to see the namespace, the file in the current project, and the information about the related class;
Class View works with Object view (Object Browser): View Object View, or shortcut: Ctrl + Shift + J
Using the Object Browser, you can find the usage of any object used in the system and the location of the tired "hierarchy" of the whole class;
Can visualize the design of the class;
18. Making a console console application
(1) The color of the text of the console output can be modified;
(2) debug Start (Not Debug): shortcut, Ctrl + F5
Or: Debug Start tune: Shortcut, F5
(3) on the project under any of the solutions, right-click the pop-up "open in Windows Explorer" to open the project's file directory;
19. Create a class library
(1) Create a class library, and finally get a ". dll" file, this is the class library of your code generation;
(2) In other projects, if you need to reference such a library, you need to "reference file" right, select "Add Reference", select the above DLL file, and finally the current project to compile processing; (optional
property) can choose to select "Copy Local" in the properties panel of the device, the library will be copied to the current system of paper;
(3) Finally, the class in the class library can be referenced in the current file to create the local class instance;
20. Debug Program
(1) Add a breakpoint, or cancel a breakpoint, with the shortcut key "F9" or by using the mouse to double-click the number of rows can also;
(2) Press "F5" to start debugging, then debug breakpoint
(3) After entering the debugging page, the above toolbar can have "Stop debugging" "Progressive debugging F9" "Step by Step" "Enter function F11" "Jump out of function"
(4) Positioning to the "cursor" position, right-click "program moved to the standard location": The debug to the cursor position;
21. Use of the Debug window
(1) Say "variable name" to the "Watch" window, you can view the name information of the variable, you can also change the information of the secondary variable, and reflected in the current environment;
(2) The local window displays all variable information for the current scope, and the Autoos window displays only the current variable information;
(3) The position of the Window Debug window "all debugging related windows;"
(4) "Timely window" is used to run a separate line of statements, in the Debugging Environment, Debug Window window can open this window;
(5) "Thread window"
22. Learn how to use Microsoft MSDN




Visual Studio Simple Use personal summary

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.