更改默认的Visual Studio命令提示符位置 [英] Change Default Visual Studio Command Prompt Location

查看:220
本文介绍了更改默认的Visual Studio命令提示符位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置默认的Visual Studio命令提示符位置,以便我可以直接转到项目目录,而无需使用通常的导航.

How to set the default visual studio command prompt location so that I can go straight to my project's directory instead of using the usual navigation.

推荐答案

对于Visual Studio 2017命令提示符,您需要将环境变量VSCMD_START_DIR设置为要在命令提示符初始化后结束的目录.

For Visual Studio 2017 Command Prompt, you need to set environment variable VSCMD_START_DIR to the directory where you want to end up after the command prompt initializes.

我使用此脚本:

set VSCMD_START_DIR=%1 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"

set VSCMD_START_DIR=%1 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"

它接受目录作为第一个(也是唯一一个)参数.

It accepts the directory as the first (and only) argument.

这篇关于更改默认的Visual Studio命令提示符位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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