1. 建议安装python2, python3可能会有问题。
cpplint.py integrationcpplint.py integration makes it easy to check that a source file conforms to the style guide. To do this, just go to Tools > External Tools > Add. Specify:Title: cpplint.pyCommand: C:\depot_tools\python_bin\python.exeArguments: C:\depot_tools\cpplint.py --output=vs7 $(ItemPath)Initial directory: $(ItemDir)Check Use Output windowTo create a keyboard shortcut: Go to Tools > Options > Environment > Keyboard. Select Tools.ExternalCommand1. (This assumes cpplint.py is your first external command in your Tools menu.) Press a shortcut key (let's say Alt+L) and Assign it. Press OK.