What file(s) does eclipse store Java code style settings to?

后端 未结 3 1600
借酒劲吻你
借酒劲吻你 2020-12-16 02:27

I spent quite a bit of time modifying my Java code style settings to be the way I like.

For example, go to Windows -> Preferences -> Java -> Code Sty

3条回答
  •  鱼传尺愫
    2020-12-16 02:47

    If you haven't set "project specific settings", it is in

    workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs
    

    If you have "project specific settings", it is in the ".settings" directory of your project.

    
      
      
      ...
    

    That latter option (project specific settings) makes it easier for you to version it in your source control tool, as part of the other project files you would want to get back when doing a checkout of a new version of your project somewhere else.

    See "Do you keep your project files under version control?" for more.

提交回复
热议问题