VS Code ripper-tags 扩展不生成 ctag 文件
VS Code ripper-tags extension not generating ctag file
Visual Studio 通过 ripper-tags 使用 CTAGS 的代码 extension 没有生成 ctag 文件:
Error on generate tags:'C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/ripper-tags-0.3.4/lib/ripper-tags' is not recognized as an internal or external command
settings.json 文件:
// settings.json
{
"ctags": {
"executePath": "C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/ripper-tags-0.3.4/lib/ripper-tags",
"options": "--tag-file=.tags --recursive --force --exclude=/assets/ --exclude=.bundle --exclude=.git/ --exclude=coverage/ --exclude=.arcanist-extensions/ --exclude=log/ --exclude=tmp/ --exclude=bin/",
"fileName": ".tags"
}
}
通过将配置削减为:
解决了问题
{
"ctags": {
"fileName": ".tags"
}
}
Visual Studio 通过 ripper-tags 使用 CTAGS 的代码 extension 没有生成 ctag 文件:
Error on generate tags:'C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/ripper-tags-0.3.4/lib/ripper-tags' is not recognized as an internal or external command
settings.json 文件:
// settings.json
{
"ctags": {
"executePath": "C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/ripper-tags-0.3.4/lib/ripper-tags",
"options": "--tag-file=.tags --recursive --force --exclude=/assets/ --exclude=.bundle --exclude=.git/ --exclude=coverage/ --exclude=.arcanist-extensions/ --exclude=log/ --exclude=tmp/ --exclude=bin/",
"fileName": ".tags"
}
}
通过将配置削减为:
解决了问题{
"ctags": {
"fileName": ".tags"
}
}