This extension utilizes the cpplint checker to provide C and C++ code style checker within Visual Studio Code.
- check coding style of cpp and c, when open and save source file
https://github.com/cpplint/cpplint
sudo pip install cpplint
-
install anaconda download link: https://repo.continuum.io/archive/Anaconda2-5.0.0-Windows-x86_64.exe
-
install cpplint open the anaconda Prompt, run the following command
pip install cpplint
ls -l /usr/local/bin/cpplint
-rwxr-xr-x 1 root root 381 May 3 08:19 /usr/local/bin/cpplint
ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/cpplint
-rwxr-xr-x 1 root wheel 468 Apr 30 22:57 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/cpplint
or
ls -l /opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/cpplint
-rwxr-xr-x 1 root wheel 267 Apr 30 22:03 /opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/cpplint
dir c:\ProgramData\Anaconda2\Scripts\cpplint.exe
cpplint.cpplintPath
: set cpplint executable path, path on windows should likec:\\ProgramData\\Anaconda2\\Scripts\\cpplint.exe
cpplint.lintMode
: set cpplint mode, avialable value are single and workspacecpplint.lineLength
: set line length strict, default is 80 characterscpplint.excludes
: set exclude rules, which is related path and shell globbing is preforming, abosluted path is supported right now,Examples: ["one.cc"] ["src/*.cc"] ["src/*.cc", "test/*.cc"]
cpplint.filters
: set filters, only error messages whose category names pass the filters will be printedcpplint.root
: set the root directory used for deriving header guard CPP variablescpplint.repository
: set top level directory of the repository, used to derive the header guard CPP variablecpplint.extensions
: set the allowed file extensions that cpplint will checkcpplint.languages
: set the allowed vscode language identifiers that cpplint will check (Currently only on single file mode)cpplint.headers
: set the allowed header extensions that cpplint will consider to be header filescpplint.verbose
: verbose level, errors with lower verbosity levels have lower confidence and are more likely to be false positives
Any issues please contact: cpplint