首页 > 其他分享 >make vscode portable together with its extensions

make vscode portable together with its extensions

时间:2022-11-10 22:24:13浏览次数:96  
标签:code Files Code portable vscode make VS exe

0. the goal

make vscode poratable together with its extensions, so that the offline pc could make use of vscode and its extensions.

1. how

1.1 on the PC with Internet connection

download the portable verison of vscode from the official website https://code.visualstudio.com/download image

1.2 on the PC1 without Internet connection

  1. copy the zip file to the PC1 by some way.
  2. unzip it to some where you want to.
  3. double click code.exe to launch vscode.
  4. if you want to add this vscode to you file explorer contenxt menu check the following section.

1.3 add portable version vscode to file explorer content menu

  1. create a file named vscode to context menu.reg.
  2. open it with any text editor.
  3. past the following code into it, modify the pathes in code and save.
  4. right click the reg file, run it as administrator.
  5. done.
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\",0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe\" \"%V\""

ref

VSCode Portable: How to get the Official Version
https://linuxpip.org/vscode-portable/

How to Setup VS Code to Be Portable
https://www.howtogeek.com/devops/how-to-setup-vs-code-to-be-portable/

add vscode to context menu after installation Code Example
https://www.codegrepper.com/code-examples/whatever/add+vscode+to+context+menu+after+installation

Adding Visual Studio Code to Your Context Menu – OSH Garage
https://oshgarage.com/adding-visual-studio-code-to-your-context-menu/

标签:code,Files,Code,portable,vscode,make,VS,exe
From: https://www.cnblogs.com/yusisc/p/16593514.html

相关文章

  • Makefile-强制更新规则指令
    FORCE是一个伪目标,一般是像下面这样定义的由上面的定义可知,FORCE是个伪目标,它的规则没有依赖没有命令。如果一个规则里没有依赖也没有命令,并且它的目标不是已存在的文件......
  • 如何在vscode上运行前端代码
    vscode可安装静态web服务器LiveServer用于运行前端代码启动localhost运行安装方法是,点击左侧第五个图标,打开“扩展”页面,在文本框中输入LiveServer,点击第一个搜索结......
  • vscode升级到1.73后,ctrl+shift+b编译失败原因
    昨天将vscode升级到了1.73.0,今天发现以前一直使用的ctrl+shift+b无法编译,但是直接使用指令是可以编译的,我这里是用来编译arm的,使用的是arm-none-eabi,后来发现是task.jso......
  • Cmake 相关语法记录
    CMake说明cmake的定义是什么?-----高级编译配置工具当多个人用不同的语言或者编译器开发一个项目,最终要输出一个可执行文件或者共享库(dll,so等等)这时候神器就出现了-----......
  • vscode插件
    ES7React/Redux/GraphQL/React-Nativesnippets可以根据某些关键词快速生成代码片段,比如:输入clg快速生成console.logBracketPairColorizer2此插件目前已废弃,因为vsc......
  • live sass compiler ,VSCode插件自动将sass解析成css
     https://www.jianshu.com/p/95af6b6c6490{      // 是否生成对应map "liveSassCompile.settings.generateMap": true, "liveSassCompile.settings.aut......
  • vscode 搭建 go 环境
    https://blog.csdn.net/water1209/article/details/125807682https://blog.csdn.net/v6543210/article/details/84504460......
  • vscode远程调试
    在本地计算机上:在vscode的工作空间中,创建用于远程调试的配置文件launch.json,设置端口和主机以及目录映射。{"name":"Python:Attach","type":"python","re......
  • C Makefile 写法
    c语言编译过程#预处理->编译->汇编->链接#预处理:将头文件替换中内容全部替换成实际内容(.i结尾),不会检查错误示例:gcc-Ehello.c-ohello.i#编译:......
  • [VScode]自动换行
    1.修改首选项配置2.打开控制折叠方式搜索wordwrapEND......