Visual Studio integrates functions.
Integration of VS (Visual Studio) Functions
In fact, VS is a tall IDE. It is very convenient to debug and enter functions gradually. Today we will send a tutorial on how to make VS more convenient for use =. =
Version used: VS2013
Integrate Google style check
Because Google-style check file cpplint. py (just copy it and save it as. py) is run in Python, we need a python ~
(PS: The version cannot be too high. Because some function formats can be modified after the upgrade, the file cannot run normally. You can use the version 2.7 for your reference ~)
Well, I won't say much about downloading anything. When installing 0. 0, remember to change the path and write it down. There is no Chinese language, or an error may occur.
The next step is the focus.
, Select Tools-> external tools
The following page is displayed:
Select Add (because the landlord has already set it up, so there is a check tool ~> 0 <)
Tool Name (as shown above)
Select the python. EXE file we just downloaded.
The parameter is "cpplint. py location" -- output = vs7 -- filter =-build/header_guard,-build/include,-readability/streams $ (ItemPath)
This is generally used to check the settings of the job. If you want to see the complete check, just delete the filter (selector) parameter (for example) =. = I believe everyone can understand how to set it.
Save the settings and you will see two more tools. But at this time ...... No shortcut keys. Are you kidding me?
OK. Set the shortcut key as follows: First, choose tools> options. In the displayed Options dialog box, select environment> keyboard.
Tap the word "external" and then 0. 0 .......
0. 0. . .
Why is QAQ not my name !? Where are style tools?
= Don't Worry. Actually, the tool number is the order from top to bottom in this figure.
Set it ~
Set file input
Fake grass: Why is my data wrong with QAQ ......
Second grass: QAQ needs to input so much data ...... Swollen
Zhencao: I don't want to get bored with the data.
Ding Cao :...... (=. =)
It doesn't matter if the data is annoying. One setting allows you to change the post from a knock !!
Open solution manager, right-click the management solution, and select Properties
Then, select the wildcard property-> debug, and set the command line parameter to "<input.txt", which indicates that the input.txt file is used as the input stream for running the program.
Similarly, the "> output.txt" handler uses the output.txt file as the output stream of the program.
If you want to know