| I can't talk about typescript. I will explain how it works with python. For python, I am able to refactor. You need to ensure you have pylance (as of 6 months ago this should be auto installed with the python extension ) and the python extension both installed. Then you can press F2 and rename variables, functions and etc. It will not work if there is an issue with one of the extensions which happens maybe quarterly - to me. If you can't rename a variable in a function Try downgrade both extensions then restart vscode (after each downgrade). Then try, if it doesn't work no worries try updating to latest version then try again. Disabling the extension then enabling won't do anything so don't bother. It works well with python but it wasn't always like this. It's come a long way in the past two years. If you want to change the name of an import you rename the module, then it should offer you to auto-rename everywhere else. Fwiw vscode is an enhanced editor not an IDE so imho it is not as good for all the refactoring solutions in comparison. That being said it has been my chosen editor/IDE for the past three years. Despite these setbacks I like it because it's light, easy to use. Doesn't ask me what to make a file before I write code in it. Doesn't require ten dialogue boxes either to create one I still use it always but yeah there are setbacks but more pros than cons for me. |