Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse java code style formatter profile location

I am trying to find out where the code style formatter profiles are saved. I have three profiles, but I need to know where they are located on my hard drive.

like image 428
sworded Avatar asked Nov 29 '12 20:11

sworded


2 Answers

They are located in your workspace in these files

...\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs 
...\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs
like image 96
ellak Avatar answered Oct 25 '22 06:10

ellak


All you need is to export theses files before importing them.

 Eclipse > Window > Preferences > Java > Code Style > Formatter:
  • Choose Active Profile from the list
  • Edit
  • Export
  • Locate the directory you want to save it.

Export Eclipse Formatter Profile

like image 43
Amt87 Avatar answered Oct 25 '22 06:10

Amt87