在特定文件夹中安装 VSCode [英] Install VSCode in a specific folder

查看:27
本文介绍了在特定文件夹中安装 VSCode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 https://code.visualstudio.com/ 下载了 Visual Studio Code 应用程序,什么时候我尝试安装,它只是自己安装了它,没有更改安装路径的选项.

I just downloaded the Visual Studio Code App from https://code.visualstudio.com/ and when I tried to install it, it simply just installed it by itself, without the option to change the installation path.

我有一个外部硬盘驱动器,我希望将 IDE 放置在这里而不是本地硬盘驱动器.我该如何更改?

I have an external harddrive, which is where I want the IDE to be placed instead of the Local Harddrive. How can I change this?

推荐答案

完全归功于 Hans Passant 提供以下工作解决方案作为评论.

Full credit to Hans Passant for giving the following working solution as a comment.

安装程序除了复制文件之外几乎没有什么作用,它只是创建一些资源管理器上下文菜单快捷方式(用代码打开").否则遵循 Chromium 约定并将自身复制到 c:\Users\yourname\AppData\Local\Code\app-0.1.0 以便它可以在您不注意的情况下自行更新.嘘.如此高的几率,只需将该文件夹移动到另一个驱动器就可以正常工作,将其放在任何地方并创建 Code.exe 的快捷方式.如果您仍然希望上下文菜单项起作用,请使用 Regedit 并搜索code\app-0.1.0".

The installer does very little beyond copying the files, it just creates some Explorer context menu shortcuts ("Open with Code"). Otherwise following Chromium conventions and copying itself to c:\Users\yourname\AppData\Local\Code\app-0.1.0 so it can update itself without you noticing. Boo. So high odds that simply moving that folder to the other drive works just fine, put it anywhere and create a shortcut to Code.exe. If you still want the context menu entry to work then use Regedit and search for "code\app-0.1.0".

这篇关于在特定文件夹中安装 VSCode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆