- This folder contains all of the files necessary for your extension.
package.json- this is the manifest file that defines the location of the extension's main file and the commands the extension contributes.extension.js- this is the main file where you will provide the implementation of your extension.
- Press
F5to open a new window with your extension loaded. - Run your command from the command palette by pressing (
Ctrl+Shift+PorCmd+Shift+Pon Mac) and typingPS1:. - Set breakpoints in your code inside
extension.jsto debug your extension.
- You can relaunch the extension from the debug toolbar after changing code in
extension.js. - You can also reload (
Ctrl+RorCmd+Ron Mac) the VS Code window with your extension to load your changes.
- You can open the full set of our API when you open the file
node_modules/@types/vscode/index.d.ts.
- To package the extension for distribution:
- Install vsce:
npm install -g vsce - Package the extension:
vsce package - The resulting
.vsixfile can be installed manually in VS Code.
- Install vsce: