VS Code ripper-tags扩展不生成ctag文件

时间:2017-01-16 10:56:33

标签: ruby-on-rails visual-studio-code ctags vscode-settings

通过ripper-tags使用CTAGS的Visual Studio代码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"
}
}

1 个答案:

答案 0 :(得分:0)

通过将配置切割为:

来解决问题
{
"ctags": {
    "fileName": ".tags"
}
}