Visual Studio Tips

Source: Internet
Author: User

Tip 1

VS2010 temporary file control, VS2010 will generate temporary files under each project, these temporary files are meaningless and not very friendly to SVN; Modify compiler settings to get rid of them;

http://stackoverflow.com/questions/4315681/how-to-change-ipch-path-in-visual-studio-2010

Tip 2

Visual Studio debugging avoids entering STL and other library function settings

If the parameter of the function has STL template object, it is easy to follow the STL's constructor in the step tracking, but it doesn't make any sense for us to debug the problem; Modify the compiler settings to solve this problem once and for all, and then trace the code only into the code we write ourselves.

Just My Code

Https://msdn.microsoft.com/en-us/library/h5e30exc (vs.80). aspx

Tip 3

The program crashes when prompted to enter the shutdown of the debug function

Many software crashes will prompt to do not go into debugging, especially the code of their own writing, on the one hand, many programs crashed on the machine may not have a debugger, so that the pop-up dialog box is meaningless, on the other hand maybe we do not leave the corresponding version of the unmodified code and PDB debug files on their own machine, Opening the debugger does not help, so the dialog box is very chicken, modify the compiler option is forbidden; Track and find bugs in a single-step debugging is usually not feasible for large software, or the use of logs to analyze existing problems; by the way, Log4cxx, a very powerful library for C + + programs to log;

Just in time

Https://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx

Tip 4

Set a theme for VS

Set the editor to green beans feel that can protect the eyes must be self-deception, to protect the eyes to see more landscape less computer is over; however, proper adjustment of the compiler's color is much more comfortable to see the code.

Below this site has a lot of VS theme can be downloaded to local; Then from the menu Tools->import and Export settings import theme can be modified color, also recommended a font Consolas, look very comfortable;

Http://studiostyl.es/schemes/latest

{Visual Assist x will set the theme, if you use the recommended theme below, you need to turn off the theme of visual Assist X}

Tip 5

Clean up the VSMACROS80 directory under the project path

Http://stackoverflow.com/questions/70377/remove-vsmacros80-directory

Tip 6

The Savior of Obsessive compulsive disorder

Formatting code shortcut keys

Ctrl + A Selects all code

Ctrl + E + f/alt + F8 formatting code

Show/Hide Invisible characters

Ctrl + Shift + 8

This shortcut controls the display of spaces and tabs, and you'll know where you've mixed tabs and spaces, where you've added a lot of meaningless spaces and tabs at the end of the line. The main problem with space and tab is that the code alignment is confusing when the editor is opened, because the default tab settings for the different editors may not be the same, and the simple thing is to stick with the blanks and set the tab to replace 4 spaces. For already written code, The Space and tab display and then change the good can cure obsessive-compulsive disorder;

The above is only personal experience, does not have generality;

Visual Studio Tips

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.