VSgoogle code specification checking tool cpplint

Original https://www.jianshu.com/p/64aa95820165

In fact, VS is a high-level IDE. It is very convenient to debug step by step, enter functions, etc. Today, I will post a tutorial on how to make VS more convenient for us to use =. =
Version used: VS2013

Since the Google-style check file cpplint.py (just copy it up and save it as .py) is run by Python, first we need a python~
  (PS: The version should not be too high, because some functions have been modified after the upgrade The format of the file will cause the file to not run normally. The landlord personally tested the 2.7 version and can use it~)
Well, I won't say much about what to download. When I install 0.0, remember to change the path and write it down, there can be no Chinese , otherwise there may be errors.

Next is the main step.

  1. As shown, select Tools -> External Tools


    Then the following interface will pop up


  2. Choose to add (because the landlord has already set it up, so there are inspection tools ~>0<), the tool name is self-prepared (as above)
    in the command, the parameters of python.exe we just downloaded
    are:

 “cpplint.py的位置” --output=vs7 --filter=-build/header_guard,-build/include,-readability/streams $(ItemPath)

This is the setting we generally use to check the job. If you want to see the complete check, just delete the parameter of the filter (selector) (as shown above) =. = I believe everyone can understand how to change the settings.
Save after setting, you will see two more tools like above. But this time... You're kidding me without a shortcut key?


  1. Well, the shortcut keys need to be set like this: First of all, it is still our Tools menu -> Options, in the pop-up options dialog box, select Environment -> Keyboard

    Type the word "external" and then 0.0.......

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325507925&siteId=291194637