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.
本文介绍如何在代码开发过程中利用cpplint.py工具自动检查代码是否符合特定的编程风格指南,通过配置外部工具和键盘快捷键,简化代码审查流程,提升开发效率。
1880





