dni*_*nim 3 keyboard-shortcuts properties-file sublimetext2
也许标题有点复杂,但情况更简单:
在Sublime文本2中,"Java属性"范围(对于具有"*.properties"扩展名的文件)不起作用快捷方式"注释一行"(在Win中为Ctrl+ /).
那么也许有人知道如何实现这个功能?我试过了,但'Java Properties'没有单独的软件包,这让我很困惑.
用例:
- > label.quantity = Quantity
- >(Ctrl+ /)
- > #label.quantity = Quantity
而已.
小智 5
我试图找到解决同样问题的方法,并提出了一个适合我的解决方案.可以在同一个包中指定注释的多个文件,因此我Comments-properties.tmPreferences在Java包中添加了另一个名为的文件,其中包含以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>source.java-props</string>
<key>settings</key>
<dict>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string># </string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>B25BCBF0-6483-11E2-BCFD-0800200C9A66</string>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)