Hello so i've seen a neal wu sublime text compile all the time without stop and highlighting the errors, what plugin is it?
# | User | Rating |
---|---|---|
1 | jiangly | 3846 |
2 | tourist | 3799 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3590 |
6 | Ormlis | 3533 |
7 | Benq | 3468 |
8 | Radewoosh | 3463 |
9 | ecnerwala | 3451 |
9 | Um_nik | 3451 |
# | User | Contrib. |
---|---|---|
1 | cry | 165 |
2 | -is-this-fft- | 161 |
3 | Qingyu | 160 |
4 | atcoder_official | 156 |
4 | Dominater069 | 156 |
6 | adamant | 154 |
7 | djm03178 | 151 |
8 | luogu_official | 149 |
9 | Um_nik | 148 |
10 | awoo | 147 |
Hello so i've seen a neal wu sublime text compile all the time without stop and highlighting the errors, what plugin is it?
Name |
---|
it's called a linter iirc, in this case a C++ linter
Actually guys I got it, here is the Installation: Note: I am using Ubuntu 21.10.
I believe it should work in any thing
Step 1 : Install clangd — sudo apt-get install clangd Step 2: Install LSP in Sublime Text — cmd+shift+p > install package > LSP > install it Step 3: Setup LSP settings: below are what i Use (u can see the settings in preferences > package control > LSP > Setting )
settings for LSP
{ "clients": { "clangd": { "enabled": true, "command": [ "/usr/bin/clangd", // you may use an absolute path for this clangd executable "-function-arg-placeholders=0", "-header-insertion-decorators=1", "-index", ], "scopes": ["source.c", "source.c++", "source.objc", "source.objc++"], "syntaxes": [ "Packages/C++/C.sublime-syntax", "Packages/C++/C++.sublime-syntax", "Packages/Objective-C/Objective-C.sublime-syntax", "Packages/Objective-C/Objective-C++.sublime-syntax", ], "languageId": "cpp", }, }, }
Step 4: Enable LSP Diagnostics Panel -- Tools > LSP > Toogle Diagnostics Panel.
Done. Now it will exactly what we want. Enjoy CODING :)
Meliodas- Thank you for the walkthorugh. Is there any way to change language from C++11 to C++17 in LSP settings, because in diagnostics throws warning.
You could add the flangd in the config file of clangd, located (in ubuntu) at
~/.config/clangd/config.yaml
(if doesn't exist, just create it):