在 html 代码 Goland IDE 中禁用 sql 语法突出显示
Disable sql syntax highlighting in html code Goland IDE
我在做我的项目,然后,显然不小心按下了热键。之后,IDE 突出显示我的 html 代码,如 sql 并告诉我:
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu
我在项目中没有使用数据库。这个语法高亮让我很烦
请告诉我如何禁用它
Screenshot
转到 Settings/Preferences | Settings | Editor | File Types
并搜索 HTML
文件类型,并确保扩展名与 Registered patterns
部分关联。
如果上述方法不起作用,那么您将不得不使用所有可用的 SQL 格式并在其中搜索您的确切文件名,并在找到时删除该关联。
编辑:
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu
这是指您尚未将 IDE 连接到受支持的数据库,因此它可以帮助您使用 SQL 相关功能。要了解有关该功能的更多信息,请使用 official help page.
我在做我的项目,然后,显然不小心按下了热键。之后,IDE 突出显示我的 html 代码,如 sql 并告诉我:
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu
我在项目中没有使用数据库。这个语法高亮让我很烦
请告诉我如何禁用它
Screenshot
转到 Settings/Preferences | Settings | Editor | File Types
并搜索 HTML
文件类型,并确保扩展名与 Registered patterns
部分关联。
如果上述方法不起作用,那么您将不得不使用所有可用的 SQL 格式并在其中搜索您的确切文件名,并在找到时删除该关联。
编辑:
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu
这是指您尚未将 IDE 连接到受支持的数据库,因此它可以帮助您使用 SQL 相关功能。要了解有关该功能的更多信息,请使用 official help page.