skimplus 最近的时间轴更新
skimplus

skimplus

V2EX 第 553847 号会员,加入于 2021-08-19 18:39:37 +08:00
今日活跃度排名 26800
skimplus 最近回复了
@kgdb00
现在这点文件大小根本没啥,compile_commands.json 实际使用起来比 ctag 好很多(快,准确)
我用的 bear 是直接用 apt install bear 安装的( bear 2.4.3@ubuntu 20.04 lts )
如果你用 cmake 的话直接把 CMAKE_EXPORT_COMPILE_COMMANDS 打开就行,不用 bear
@kgdb00
我记得我以前的工程是在 build 目录 bear -a make 就可以了
我把上面的命令绑定到 vscode build task 上了,一般修改一些就 build 一下
不加 -a 可能 compile_commands.json 里就被替换为 make 新编译的部分(修改的文件)
加上 -a (或者 --append )可以保证 compile_commands.json 里面的内容是完整的
@kgdb00 我这边是支持的,这个参数是用来增量向 compile_commands.json 里输出的
--append, -a Extend existing compilation database with new entries. Duplicate entries are detected and not present in the final output. The output is not continuously updated, it's done when the build command finished. (default: False)
make 构建可以执行
bear -a make
2021-08-20 11:02:02 +08:00
回复了 henryhu 创建的主题 git 大伙常用什么查看 git 提交?命令行还是图形界面?
vscode + Git Graph, Git Extension(Windows), tig(shell)
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2840 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 12:58 · PVG 20:58 · LAX 05:58 · JFK 08:58
Developed with CodeLauncher
♥ Do have faith in what you're doing.