How to select variables (not text) with the same name?

前端 未结 2 1322
囚心锁ツ
囚心锁ツ 2021-01-05 23:38

When selecting variable f, the editor highlights other occurrences of the variable. So far so good, but when trying to add them to the selection list with

2条回答
  •  伪装坚强ぢ
    2021-01-06 00:26

    It's a bug. The post also has the workaround.

    Rather than selecting the variable, just put the cursor left to it, and press Ctrl+D. This will also select it, but only other variables (or what the editor recognises as variables, based on word boundaries) on subsequent Ctrl+D presses.

提交回复
热议问题