code_fodder
code_fodder

Reputation: 16371

Visual studio code refactoring does not seem to work (e.g. rename symbol - f2)

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".

Upvotes: 20

Views: 16120

Answers (1)

Bob Brown
Bob Brown

Reputation: 194

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).

Upvotes: 2

Related Questions