So I have just installed vscode on ubuntu at version: 1.27.2. I have installed the extension for c++ as well.
Its all working nicely, except that I cant seem to use the refactor actions. Specifically I want to use the rename symbol (f2).
When I click a variable and press f2 nothing happens. If I do ctrl+shift+r (refactor actions) I always get "no refactorings available".
I checked the key-bindings and it shows for "f2":
So I checked that the editor is writeable and text has focus - both true. But I am not sure what this editor has rename provider is?
So I need to install something else? - how can I get refactoring working?
Update
This has now been implemented in vscode-cpptools
extension: version v0.26 called "rename symbol".
Renaming is not currently implemented by the C++ extension, but a preview of the feature will be released next week for our "insiders" (set the C_Cpp.updateChannel
setting to "Insiders"
to get it).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With