vscode でワードプレスのタグを記述すると下に波線が出てエラーになります。
解決方法を調べたところ、
» PHP Intelephenseを使ってコードを自動整形しよう【WordPress】 | shuu11 code
https://shuu1104.com/2021/07/3582/
上記の方法がでてきて設定しましたが、波線が消えません。
セッティングのソースを見ても下記のように記述されています。
{ "editor.fontSize": 24, "editor.tabSize": 2, "editor.renderWhitespace": "all", "editor.insertSpaces": true, "workbench.startupEditor": "newUntitledFile", "emmet.variables": { "lang": "ja" }, "emmet.syntaxProfiles": { "html": { "filters": "html,c" }, }, "emmet.preferences": { "filter.commentAfter": "<!-- /[#ID][.CLASS] -->" }, "editor.hover.enabled": false, "editor.wordWrap": "on", "php.validate.executablePath": "C:\\xampp\\xampp\\php\\php.exe", "editor.mouseWheelZoom": true, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.quickSuggestions": { "strings": true }, "editor.suggest.insertMode": "replace" }, "liveSassCompile.settings.formats":[ { "format": "expanded", "extensionName": ".css", "savePath": "/css" } ], "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": true, "workbench.editor.untitled.hint": "hidden", "bracketPairColorizer.depreciation-notice": false, "files.autoSave": "afterDelay", "liveServer.settings.donotShowInfoMsg": true, "editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?", "workbench.colorTheme": "Visual Studio Dark", "window.zoomLevel": 2, "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true, "trailing-spaces.trimOnSave": true, "[css]": { "editor.defaultFormatter": "aeschli.vscode-css-formatter" }, "intelephense.phpdoc.classTemplate": { "summary": "$1", "tags": [ "@package ${1:$SYMBOL_NAMESPACE}" ] }, "intelephense.phpdoc.propertyTemplate": { "summary": "$1", "tags": [ "@var ${1:$SYMBOL_TYPE}" ] }, "intelephense.stubs": [ "apache", "bcmath", "bz2", "calendar", "com_dotnet", "Core", "ctype", "curl", "date", "dba", "dom", "enchant", "exif", "FFI", "fileinfo", "filter", "fpm", "ftp", "gd", "gettext", "gmp", "hash", "iconv", "imap", "intl", "json", "ldap", "libxml", "mbstring", "meta", "mysqli", "oci8", "odbc", "openssl", "pcntl", "pcre", "PDO", "pdo_ibm", "pdo_mysql", "pdo_pgsql", "pdo_sqlite", "pgsql", "Phar", "posix", "pspell", "readline", "Reflection", "session", "shmop", "SimpleXML", "snmp", "soap", "sockets", "sodium", "SPL", "sqlite3", "standard", "superglobals", "sysvmsg", "sysvsem", "sysvshm", "tidy", "tokenizer", "xml", "xmlreader", "xmlrpc", "xmlwriter", "xsl", "Zend OPcache", "zip", "zlib", "wordpress" ], "json.schemas": [ ] }
また、
» 【VSCode】PHPで関数のインテリセンスが効かない問題を解決 | 音又空間 ver2.0
https://www.otomata01.com/php-intelephense-error/
こちらの設定をしても駄目でした。
直す方法はないのでしょうか?
上記のようなエラーが出ます。

回答1件
あなたの回答
tips
プレビュー