search

Home  >  Q&A  >  body text

vim - VS Code How to replace automatically highlighted variables at once?

as the picture shows:

Please note: The highlighted user are the same variable, which vscode can automatically identify and distinguish from another variable user in another function below. , there is no highlighting.

What I want to do now is to replace the highlighted user in the picture with credentials without replacing the user variable of the function below.

Thanks.

------------------------UPDATE---------------------- -----

**The solution has been found:
Right-click on the highlighted user, and then click "Rename Symbol" instead of performing a Find/Replace operation. **

天蓬老师天蓬老师2778 days ago736

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 16:37:19

    The solution has been found: right-click on the highlighted user and click "Rename Symbol" instead of performing a Find/Replace operation.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 16:37:19

    Shortcut key: ctrl+shift+l

    reply
    0
  • Cancelreply