VSCode: Restart an extension automatically when its source has changed
问题 I'm developing a VSCode extension. Is it possible to automatically have the extension reloaded when I change its source. Currently, I need to press Ctrl + SHift + F5 . 回答1: I guess your extension is written in TS/javascript, so you can use fs.watch to watch your sources, and find a way to run the vscode command workbench.action.reloadWindow , which is from sources of vscode, the function ReloadWindowAction.Run() or directly windowService.reloadWindow() . export class ReloadWindowAction