2

I am unable to get the Rename Symbol F2 command to work in VSCode when editing a Apex class.

When I press F2 the floating input appears, once I press enter the code is not updated, and I cannot see any errors.

According to the documentation this should work?

Questions:

  1. what am I doing wrong?
  2. how can I fix it?
0

1 Answer 1

4

https://developer.salesforce.com/tools/vscode/en/apex/refactoring

enter image description here

It's actually hard to see in the .gif they provided in the link (tried to screengrab the moment and included above), but you have to highlight the whole word you're looking to rename as opposed to simply clicking your cursor on it.

Once you've highlighted the name in question, you can simply click F2 or right click and select "rename symbol".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .