日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

mac用vscode打开html,Mac 命令行打开VsCode

發布時間:2023/12/15 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。