steelbrain/linter

Lint on Grammar Change

bmundt6 opened this issue · 0 comments

I have cpplint set up to lint C++ source code, but no linter for C source code. When I open up a .h file and the grammar is recognized as C, if I manually change the grammar to C++ in the editor, I would like that to trigger cpplint to run on the file (as if I had just opened the file and it was correctly recognized as C++ source code) when I have the "Lint on Open" setting checked. As of now, I need to save the file or run the Lint command from the command palette to see any output when I switch grammars.