0

我在我的项目中使用一尘不染来格式化代码。我决定在这个项目中使用 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。

但我不知道这个文件在哪里。我尝试安装 elcpse 并找到给定的文件,但没有成功。

4

1 回答 1

0

正如@nitind 所提到的,该文件位于工作区中。我发现它的方式是运行以下推荐。

find ~/ -name 'org.eclipse.wst.html.core.prefs'

于 2021-02-08T15:07:53.463 回答