Answer the question
In order to leave comments, you need to log in
How to set custom scope for goto symbol?
When you press Ctrl + R, the names of classes and methods are shown, tell me how to add your own regular expression? I found that I need to edit the .tmPreferences file, but I don’t know in what format to write it. Here is an example source file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbols List: Indent Functions</string>
<key>scope</key>
<string>entity.name.function.php, support.function.magic.php</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
</dict>
<key>uuid</key>
<string>5157F71C-2801-4385-92EA-3D0B72AEE7C5</string>
</dict>
</plist>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question