我从来没有在vscode
分机和nodejs/npm
分机工作过
我正在try 编译这个扩展:
我已经下载了nodejs
,安装了,然后我下载了扩展源,open cmd:
cd 'folder where is the extension src' > npm install package.json
它安装并创建了一个文件夹node_modules
我做得对吗?接下来的步骤是什么?
我从来没有在vscode
分机和nodejs/npm
分机工作过
我正在try 编译这个扩展:
我已经下载了nodejs
,安装了,然后我下载了扩展源,open cmd:
cd 'folder where is the extension src' > npm install package.json
它安装并创建了一个文件夹node_modules
我做得对吗?接下来的步骤是什么?
然后搜索带有引号的"排水沟预览",你会得到一个名为"图像预览"的结果,即扩展,只需单击"安装".
Another way is visit this url
https://marketplace.visualstudio.com/items?itemName=kisstkondoros.vscode-gutter-preview.
Then press on 'Download Extension' on the right hand side, download the file then inside your vscode open the command pallet (CTRL + Shift + p) and type:
extensions install from vsix
, click that command, then choose the .VSIX file you just downloaded.
最后,如果必须从github repo执行此操作,则在运行npm install
并找到node_modules
目录的目录中,运行npm run webpack-prod
(在项目文件夹根目录的package.json
文件中指定的命令,该命令描述了如何构建应用程序).然后,您应该在项目的./dist/extension
目录中找到一个.VSIX
文件,并对生成的.VSIX
文件应用步骤2