:::

1-1 Visual Studio Code編輯器完整設定

底下的PHP路徑請視實際情況來修改

{
    "workbench.colorTheme": "Monokai",
    // 控制字型大小 (以像素為單位)。
    "editor.fontSize": 16,
    //  - 'bounded' (當檢視區縮至最小並設定 'editor.wordWrapColumn' 時換行).
    "editor.wordWrap": "on",
    // 控制編輯器是否應自動設定貼上的內容格式。格式器必須可供使用,而且格式器應該能夠設定文件中一個範圍的格式。
    "editor.formatOnPaste": true,
    // 使用滑鼠滾輪並按住 Ctrl 時,縮放編輯器的字型
    "editor.mouseWheelZoom": true,
    // 在儲存時設定檔案格式。格式器必須處於可用狀態、檔案不得自動儲存,且編輯器不得關機。
    "editor.formatOnSave": true,
    // 控制已變更之檔案的自動儲存。接受的值: 'off'、'afterDelay、'onFocusChange' (編輯器失去焦點)、'onWindowChange' (視窗失去焦點)。若設為 'afterDelay',可以在 "files.autoSaveDelay" 中設定延遲。
    "files.autoSave": "onFocusChange",
    "files.associations": {
        "*.tpl": "html"
    },
    // 指向 PHP 可執行檔。
    "php.validate.executablePath": "D:/tad1062/UniServerZ/core/php71/php.exe",
    "phpfmt.php_bin": "D:/tad1062/UniServerZ/core/php71/php.exe",
    "phpfmt.format_on_save": true,
    "phpfmt.indent_with_space": 4,
    "phpfmt.enable_auto_align": true,
    "phpfmt.visibility_order": true,
    "phpfmt.passes": [],
    "phpfmt.smart_linebreak_after_curly": true,
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D43%26tbdsn%3D1335

書籍目錄

展開 | 闔起

線上使用者

30人線上 (11人在瀏覽線上書籍)

會員: 0

訪客: 30

更多…