javagradleeclipse-wtpspotless

spotless elicpse wtp format config file


I'm using spotless to format code in my project. I've decided to use WTP plugin to format html, css and js in this projet.

There should be a config to select the way html is formated. eg. with space instead of tab.

https://github.com/diffplug/spotless/tree/main/plugin-gradle#eclipse-web-tools-platform

The file path given is .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.html.core.prefs.

But I have no clue where this file is. I tryed to install elicpse and find the given file, with no luck.


Solution

  • As mentiontioned by @nitind the file is in the workspace. The way i found it was to run the following commend.

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