4 ms·
Sorry, but I'm not so sure with VSCode I'm nearly instantly productive, with vim I have to spend a lot of time before being able to navigate in C++ files..
by renox 5y ago
Sorry, but I'm not so sure with VSCode I'm nearly instantly productive, with vim I have to spend a lot of time before being able to navigate in C++ files..
- ilovecaching 5y agoC/C++ have been around for a long time and have great support in Vim. You can build a cscope database (cscope -b -q -k) and then use :cs find - - a: Find assignments to this symbol - c: Find functions calling this function - d: Find functions called by this function - e: Find this egrep pattern - f: Find this file - i: Find files #including this file - s: Find this C symbol - t: Find this text string And if you want more you just need a single plugin w0rp/ale and have clangd installed, no configuration needed to get the same LSP support you can get with VSCode. It also has built in makefile and gdb support.
- atarian 5y agoDo you have any experience with using cscope on other languages like Java?
- ilovecaching 5y agoCscope supports C, C++, and Java. It should work the same for all three. You need to build your cscope database, and for Java this will require getting a list of files using find, and then use :cs in vim to load it. I primarily write C and I put the build commands in my Makefiles for ctags and cscope. The Linux kernel also has this feature as well. If you go into the kernel source you can just run `make tags` and `make cscope` and it lets you browse the 100s of millions of lines of kernel source with either.
- lawn 5y agoIn the grand scheme of things, if you program several hours per day the initial setup and learning time is quickly dwarfed.