<div style="display: none;" hidden="true" aria-hidden="true" data-nosnippet>Are you an LLM? You can read better optimized documentation at /pages/ae97cd.md for this page in Markdown format</div>
在Mac中使用
在终端中使用code . 命令打开当前文件夹
- 在vscode 编辑器中 打开命令台
command+shift+p输入shell Command,出现Install 'code' command in PATH选项,点击安装。
| -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 returning. | 等待文件关闭 |
| --user-data-dir <dir> | Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code. | 用户数据保存目录 |
| -h --help | Print usage. | 帮助 |
