Python refactoring fails in Visual Studio Code
Update from the filed bug: Anaconda users need to install the Anaconda package instead of the regular pip default install that Visual Studio Code provides.
This worked for me:
conda search rope # The latest right now is 0.11.0
conda install --name mypy27env rope
Renaming of variables is not a native Visual Studio Code feature for languages other than JavaScript and TypeScript.
It is specific to each language, and functionality is provided by separate extensions, specific to each language. The Python extension you have installed, uses the Rope library to perform refactoring/renaming of python variables and the like. So yes, you'll need to install it by closing in the Install rope
button.
If you don't have the Install rope
button, you can just go to cmd and type pip install rope
. That should do the job as well.
If it doesn't work even after installing it, please could you file an issue on the Python extension GitHub repository.