vscode 使用技巧
# 在Mac中使用
# 在终端中使用code .
命令打开当前文件夹
- 在vscode 编辑器中 打开命令台
command+shift+p
输入shell Command
,出现Install 'code' command in PATH选项,点击安装。
-d --diff | Compare two files with each other. | 比较两个文件的差异 |
---|---|---|
-a --add | Add folder(s) to the last active window. | 向窗口中添加文件夹 (opens new 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 returning. | 等待文件关闭 |
--user-data-dir (opens new window) | Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code. | 用户数据保存目录 |
-h --help | Print usage. | 帮助 |
上次更新: 2022/06/05, 20:31:36