讓 vs code 指定 PHP 執行檔,不然它會一直提示你

"php.executablePath": "C:/xampp/php/php.exe",
"php.validate.executablePath": "C:/xampp/php/php.exe",

Windows 的換行是 \r\n (CRLF),而 Linux 是 \n (LF),會遇到 Windows 開發後放在 Linux 跑時會 error,為了讓事情簡單化就預設是 LF 吧
這是針對新增的,舊的可以從右下角去改變它

"files.eol": "\n"

終端機 換成 bash 的 (GIT 的安裝路徑)

"terminal.integrated.shell.windows": "C:/Users/cross.fang/AppData/Local/Programs/Git/bin/bash.exe"

新檔為 UTF8

"files.encoding": "utf8"

1 tab = 4 spaces

"editor.tabSize": 4

檔案另開在新 tab

"workbench.editor.enablePreview": false,
"window.openFilesInNewWindow": "on"

設定其它副檔名的檔案跟 php 是有關係的

    "files.associations": {
        "*.inc": "php",
        "*.tpl": "html",
    }

其它

"window.zoomLevel": 0,
"files.autoSave": "off",
"explorer.sortOrder": "modified",
"window.menuBarVisibility": "default"
Related posts 相關文章
我現在的筆記方式
More...
使用 vscode 結合 playwright
More...
VSCode 遇到當檔案更名後 SFTP 上傳仍是舊的
More...
VSCode (Visual Studio Code) 編輯工具-快捷鍵 part2
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。