I would like to have an extension fitting my coding style. If you like to have one as else, feel free to copy this project.
Here, we will install locally. As, there is no need to publish the extension to public.
Checkout this project in your VS code extension folder.
Make sure (user)\.vscode\extensions\tommy-vscode-extension\package.json
is in place.
Run npm install
and npm run compile
By default, VS Code searches your extensions
folder on startup. You will see the extension in extension tab.
However, the extension may not be working, if it is not trusted or VS Code is not updated.
In VS code, open the project folder (user)\.vscode\extensions\tommy-vscode-extension
and add it to trusted paths
This project requires VS Code 1.84. Update your VS Code if needed.
Afterwards, restart your VS Code and you should see the extension up and running.
In case your VS code still does not install the extension automatically.
You can manually add the follow to (user)\.vscode\extensions\extensions.json
{
"identifier": { "id": "tommyiasia.tommy-vscode-extension" },
"version": "0.0.1",
"location": {
"$mid": 1,
"fsPath": "c:\\Users\\tommy\\.vscode\\extensions\\tommy-vscode-extension",
"_sep": 1,
"path": "/c:/Users/tommy/.vscode/extensions/tommy-vscode-extension",
"scheme": "file"
},
"relativeLocation": "tommy-vscode-extension"
}
Also check if VS Code accidentally put the extension into (user)\.vscode\extensions\.obsolete
list.
You can edit the project and commit it as any of our normal projects.