我正在使用spotless在我的项目中格式化代码。我决定在这个项目中使用WTP插件来格式化html,css和js。
应该有一个配置来选择html的格式化方式。例如:用空格代替制表符。
https://github.com/diffplug/spotless/tree/main/plugin-gradle#eclipse-web-tools-platform
给定的文件路径为.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.html.core.prefs.
但我不知道这个文件在哪。我试图安装elicpse并找到给定的文件,但没有成功。
发布于 2021-02-08 23:07:53
正如@nitind提到的,文件在工作区中。我发现它的方式是运行以下推荐。
find ~/ -name 'org.eclipse.wst.html.core.prefs'
https://stackoverflow.com/questions/66103499
复制相似问题