mac用vscode打开html,Mac 命令行打开VsCode
釋放雙眼,帶上耳機,聽聽看~!
命令行
命令行命令安裝
安裝 VSCode Shell 命令,按 Shift+Cmd+P 搜索 shell command install 回車即可。
命令行幫助
Visual Studio Code 1.30.0
Usage: code [options] [paths...]
To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')
Options:
-d, --diff Compare two files with each other.
-a, --add
-g, --goto 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.
--locale The locale to use (e.g. en-US or zh-TW).
--user-data-dir
instances of Code.
-v, --version Print version.
-h, --help Print usage.
Extensions Management:
--extensions-dir
--list-extensions List the installed extensions.
--show-versions Show versions of installed extensions, when using
--list-extension.
--uninstall-extension ( | ) Uninstalls an extension.
--install-extension ( | ) Installs or updates the extension. Use `--force` argument to
avoid prompts.
--enable-proposed-api () Enables proposed API features for extensions. Can receive
one or more extension IDs to enable individually.
Troubleshooting:
--verbose Print verbose output (implies --wait).
--log Log level to use. Default is 'info'. Allowed values are 'critical', 'error', 'warn',
'info', 'debug', 'trace', 'off'.
-s, --status Print process usage and diagnostics information.
-p, --performance Start with the 'Developer: Startup Performance' command enabled.
--prof-startup Run CPU profiler during startup
--disable-extensions Disable all installed extensions.
--disable-extension Disable an extension.
--inspect-extensions Allow debugging and profiling of extensions. Check the developer tools for the
connection URI.
--inspect-brk-extensions Allow debugging and profiling of extensions with the extension host being paused after
start. Check the developer tools for the connection URI.
--disable-gpu Disable GPU hardware acceleration.
--upload-logs Uploads logs from current session to a secure endpoint.
--max-memory Max memory size for a window (in Mbytes).
```常用命令
```// 在 VSCode 中打開當前目錄
$ code .
// 在最近使用過的 VSCode 窗口打開當前目錄
$ code -r .
// 創建新的窗口
$ code -n
$ code --new-window
// 更改語言
$ code --locale=es
// 跳轉到指定文件的指定行列,相當于跳轉到指定文件的指定行的從左到右第幾個字符上
$ code -g /path/to/:10:10
$ code --goto /path/to/:10:20
// 打開 diff 編輯器比較文件
$ code -d
$ code --diff
// 查看幫助選項
$ code --help
// 禁用所有擴展
$ code --disable-extensions
總結
以上是生活随笔為你收集整理的mac用vscode打开html,Mac 命令行打开VsCode的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 微软“万人裁员”波及到领英 后者将进行裁
- 下一篇: 一台计算机连入计算机网络后通过该计算机,