如何通过Windows中的CMD设置VSCODE?

发布于 2025-02-08 04:59:48 字数 1400 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迟到的我 2025-02-15 04:59:48

如果要在vscode中打开文件夹,则以下是步骤

  1. 该文件夹
  2. 在清除文件夹路径后仅写入cmd,然后键入
  3. 在该文件夹中打开CMD,然后按Enter键打开Enter ,将打开CMD,然后通过只是打字
    代码 - version 在CMD中
  4. 显示和错误执行以下步骤(在这里您将在环境变量中设置路径)
  5. 在本地磁盘C中打开此文件夹

c:\ users \ {用户名} \ appdata \ local \ program \ microsoft vs code \ bin

  1. 复制上述路径

  2. 在Windows搜索中

    编辑编辑系统环境变量
    窗口附近图标(左下)

  3. 转到环境变量,然后系统变量路径单击
    路径

  4. 新路径,然后粘贴bin文件夹的文件路径,然后单击OK

  5. 现在您可以通过CMD

    在VSCODE中打开文件夹

If you want to open folder in vscode following are the steps

  1. go to that folder
  2. open cmd in that folder by just writing cmd on after clearing folder path and then hit enter
  3. this will open cmd then check code version by just typing
    code --version in cmd
  4. if it shows and error do the following steps (Here you will setup a path in environment variables)
  5. open this folder in local disk c

C:\Users\{username}\AppData\Local\Programs\Microsoft VS Code\bin

  1. Copy the above path

  2. write edit the system environment variable in your windows search
    box near window icon (left bottom)

  3. go to environmental variables then systems variables path click on
    path

  4. New path then paste the file path of bin folder then click ok

  5. now you can open your folder in vscode via cmd

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文