当 Cursor 定位在开始或结束时,Atom Editor 主题更改大括号的颜色
Atom Editor theme change the color of curly brackets when Cursor is Positioned at either start or end
默认情况下,Atom 编辑器通过难以看到的虚线下划线突出显示开始和结束大括号。我希望通过更改此突出显示以将背景颜色设置为开始和结束大括号来使此突出显示更加明显。我怎样才能做到这一点? (如果相关,我正在处理 .js 文件)
我搜索了 google 并找到了一些链接,但没有专门解决此问题的链接。我也搜索了原子编辑器文档无济于事。
我找到了可以完成此操作的 styles.less 文件,但不知道如何定位这个角色来设置它的样式。
//Example
// style the background and foreground colors on the atom-text-editor-element itself
//This is a made up name for targeting character:
atom-text-editor-curly-brackets {
background-color: blue;
}
当我通过用彩色背景突出显示大括号字符将光标放在两端时,我希望能够快速找到左大括号或右大括号。
你检查过这个讨论了吗?
https://discuss.atom.io/t/set-colour-of-bracket-and-matched-bracket/39018/2
The selector for that is:
.bracket-matcher .region {
// your styles here
}
Add it to your user stylesheet (.atom/styles.less).
似乎您无法轻松地自行设置括号的样式(将它们设为绿色等),但在它们后面设置彩色背景似乎是可能的
!
默认情况下,Atom 编辑器通过难以看到的虚线下划线突出显示开始和结束大括号。我希望通过更改此突出显示以将背景颜色设置为开始和结束大括号来使此突出显示更加明显。我怎样才能做到这一点? (如果相关,我正在处理 .js 文件)
我搜索了 google 并找到了一些链接,但没有专门解决此问题的链接。我也搜索了原子编辑器文档无济于事。
我找到了可以完成此操作的 styles.less 文件,但不知道如何定位这个角色来设置它的样式。
//Example
// style the background and foreground colors on the atom-text-editor-element itself
//This is a made up name for targeting character:
atom-text-editor-curly-brackets {
background-color: blue;
}
当我通过用彩色背景突出显示大括号字符将光标放在两端时,我希望能够快速找到左大括号或右大括号。
你检查过这个讨论了吗? https://discuss.atom.io/t/set-colour-of-bracket-and-matched-bracket/39018/2
The selector for that is:
.bracket-matcher .region { // your styles here }
Add it to your user stylesheet (.atom/styles.less).
似乎您无法轻松地自行设置括号的样式(将它们设为绿色等),但在它们后面设置彩色背景似乎是可能的 !