Files
tldr/pages.zh/common/code.md
Jin 67166ff0e7 common/a~g*:fix outdated Chinese pages (#14690)
* common/a~g*:fix outdated Chinese pages

* Update airmon-ng.md

* Update aria2c.md

* update chown

* Update ansible-playbook.md

---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-11-27 03:20:32 -08:00

37 lines
894 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# code
> 跨平台且可扩展的代码编辑器。
> 更多信息:<https://github.com/microsoft/vscode>.
- 启动 Visual Studio Code
`code`
- 打开指定的文件或目录:
`code {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
- 比较两个指定的文件:
`code --diff {{路径/到/文件1}} {{路径/到/文件2}}`
- 在新窗口中打开指定的文件或目录:
`code --new-window {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
- 安装/卸载一个特定的插件:
`code --{{install|uninstall}}-extension {{插件作者.插件名}}`
- 输出已安装的插件:
`code --list-extensions`
- 输出已安装的插件及其版本:
`code --list-extensions --show-versions`
- 以超级用户root身份启动编辑器同时将用户数据存储在指定目录中
`sudo code --user-data-dir {{路径/到/目录}}`