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