Rename on import paths for JavaScript and TypeScript You can use rename (F2) on import paths in JavaScript and TypeScript files to rename the corresponding file. All references to the file are also updated.