VS code 可以改变 extra "end" 的颜色吗?
Can VS code change the color of extra "end"?
Atom 有一个 setting/package,如果它没有相应的 "def",(在编程 ruby 时)将更改 "end" 的文本颜色,"do" 或 "if" 块。 (即紫色 "end" = 好但白色 "end" = 不好)这在 VS 代码中可能吗?
您正在寻找的功能称为平衡对语法突出显示。
Atom 使用 Tree-sitter for its syntax highlighting. Tree-sitter is a full parser using code in C++ which can most any programming language. The Ruby grammar 相当大;我没有看到你粗略地描述的专门的块结束格式,尽管我不怀疑它在某处。
Visual Studio 代码使用自己的 complex language server system for syntax highlighting. The documentation for the Ruby language server claims that it indeed implements balanced pair highlighting, so if it's not working for you, I'd recommend filing a bug report.
Atom 有一个 setting/package,如果它没有相应的 "def",(在编程 ruby 时)将更改 "end" 的文本颜色,"do" 或 "if" 块。 (即紫色 "end" = 好但白色 "end" = 不好)这在 VS 代码中可能吗?
您正在寻找的功能称为平衡对语法突出显示。
Atom 使用 Tree-sitter for its syntax highlighting. Tree-sitter is a full parser using code in C++ which can most any programming language. The Ruby grammar 相当大;我没有看到你粗略地描述的专门的块结束格式,尽管我不怀疑它在某处。
Visual Studio 代码使用自己的 complex language server system for syntax highlighting. The documentation for the Ruby language server claims that it indeed implements balanced pair highlighting, so if it's not working for you, I'd recommend filing a bug report.