How to select all instances of a variable and edit variable name in Sublime

后端 未结 10 1298
一向
一向 2020-12-02 03:34

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:

10条回答
  •  旧巷少年郎
    2020-12-02 03:57

    This worked for me. Put your cursor at the beginning of the word you want to replace, then

    CtrlK, CtrlD, CtrlD ...

    That should select as many instances of the word as you like, then you can just type the replacement.

提交回复
热议问题