讓 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"
留言