On PyCharm you can right-click a file -> Refactor -> Rename. And it would rename that file and update all import statements in all files in the project.
In VS Code, while I can rename and refactor symbols by highlighting them -> F2, this only works for modules, classes, their members, and variables.
E.g. I have an utils/__init__.py with:
from utils.readers import CSVReader
utils/readers.py with:
class CSVReader:
pass
And main.py with:
from utils import CSVReader
r = CSVReader()
I would like to, for example, rename utils/readers.py -> utils/local_readers.py and have VS Code auto-update utils/__init__.py with:
from utils.local_readers import CSVReader
Dozens of google search results point to Move TS (for TypeScript only). Is there a similar extension for Python, or some built-in hotkey I missed?
