問題:
If I select a variable (not just any string) in my code, all other instances of that variable get a stroke (white outline) around them:如果我在我的代碼中選擇一個變量(不僅僅是任何字符串),該變量的所有其他實例都會在它們周圍得到一個筆劃(白色輪廓):
Is there a keyboard shortcut that will let me select all of those instances of the variable and edit them all at once?是否有鍵盤快捷鍵可以讓我選擇變量的所有實例並一次編輯它們?
Things I've Tried:我嘗試過的事情:
⌘ D , ⌘ K , and ⌘ U lets me select them one-by-one, but I have to manually exclude the non-variable string matches: ⌘ D 、 ⌘ K和⌘ U讓我可以一一選擇它們,但我必須手動排除非可變字符串匹配項:
And using Ctrl ⌘ G simply selects all the string matches:使用Ctrl ⌘ G只需選擇所有匹配的字符串:
Clearly, Sublime is able to differentiate between variable and string matches.顯然,Sublime 能夠區分變量匹配和字符串匹配。 Is there no way to select just the variable matches?有沒有辦法只選擇變量匹配?
解決方案:
參考一: https://en.stackoom.com/question/18g41參考二: https://stackoom.com/question/18g41