Hacker News new | past | comments | ask | show | jobs | submit login

Has anyone used VsCode for C++/CMake development? What was your experience?



I'm primary Emacs user with LSP mode setup. But sometimes, Emacs performance just triggers my frustration enough to use VsCode.

To me, VSCode is much better experience from performance and LSP integration perspective. Everything works pretty much as you would expect. I use `ccls` and `goto-symbol-stack` for better tag browsing -- which gives pretty close experience to Emacs "M-." or Vim's "C-[" and go back shortcuts.

I don't use any CMake extension. You can basically create tasks and assign one of them as build. I just use those task to run the CMake commands, or my own scripts which sync and compile code remotely.

There are some other awesome plugins (I use Git ones), which are incredibly good.

If you work on Windows, I hear integration with Linux Subsystem is excellent, and there is some other features for general remote development that I often try.

Often, eventually after a day or two of use, I would still get back to Emacs, because what I absolutely miss is years of conditioning and customizability of Emacs. The keybindings are exactly how I want (and they make sense), window splits and workspaces (are in my opinion superior to VSCode), things popup and close when I need them and keybindings around them are straightforward.

Bottom line is, if you are hardcore Vim/Emacs user --

(1) you'd probably appreciate the convenience, excellent performance with LSP and bigger files, things working out of box, font sizes/colors being consistent, and nicer UI around code browsing. (2) At the same time you'd miss certain essential things that are heavily engrained into you. Lot of things will be good, but not good enough -- specifically related to keybindings/window splitting/buffer management.


Using it for about a year now on medium-sized projects and liking it. Definitely set up the clangd extension as also mentioned elsewhere. Extension ecosystem is great in general.


Works pretty well with the C++ extension and the cmake-tools extension. Though at some point I ended up just swapping to invoking CMake from the command line.


I haven’t found a good CMake linter, do you use one?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: