命令行使用VSCode命令

本文介绍了如何在安装过程中将Visual Studio Code注册为命令行工具,通过添加到系统变量,用户可以在命令行中直接使用VSCode命令,提高工作效率,同时可以查看相关帮助信息。
摘要由CSDN通过智能技术生成

Visual Studio Code安装的时候可选注册命令行工具code.exe到系统中,熟悉一下,日常使用中能提高不少效率。

添加到系统变量之后,命令行中直接使用code --help,可查看帮助信息。

Visual Studio Code 1.38.0

Usage: code.exe [options][paths...]

To read output from another program, append '-' (e.g. 'echo Hello World | code.exe -')

Options
  -d --diff <file> <file>           Compare two files with each other. // 文件比较
  -a --add <folder>                 Add folder(s) to the last active window. // 将文件夹在当前窗口打开
  -g --goto <file:line[:character]> Open a file at the path on the specified line and character position. // 在指定行和字符位置的路径上打开文件。
  -n --new-window                   Force to open a new window. // 强制打开新窗口
  -r --reuse-window                 Force to open a file or folder in an already opened window. // 强制在已打开的窗口中打开文件或文件夹。
  -w --wait                         Wait for the files to be closed before return
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值