Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.
/ eclipstyle Public archive

Clone code style & format accross multiple Eclipse workspaces.

License

Notifications You must be signed in to change notification settings

utkuufuk/eclipstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eclipstyle

Set up Eclipse workspace preferences once and use them everywhere!

How Does It Work?

Clones code style formatting as well as font, color & text editor settings located in

  • org.eclipse.jdt.core.prefs
  • org.eclipse.jdt.ui.prefs
  • org.eclipse.ui.editors.prefs
  • org.eclipse.ui.workbench.prefs

files from a directory or an existing workspace to all workspaces.

Usage

# export preferences
java -jar eclipstyle.jar export /path/to/ref/workspace /path/to/export/prefs

# clone previously exported preferences
java -jar eclipstyle.jar clone /path/to/import/prefs /path/to/all/workspaces

# export preferences from an existing workspace
java -jar eclipstyle.jar clone /path/to/ref/workspace /path/to/all/workspaces

export example

# windows
java -jar eclipstyle.jar export D:\Dev\Workspaces\eclipstyle E:\Dropbox\eclipse_prefs

# unix
java -jar eclipstyle.jar export ~/dev/workspaces/eclipstyle ~/Dropbox/eclipse_prefs

clone example

# windows (clone from existing workspace)
java -jar eclipstyle.jar clone D:\Dev\Workspaces\eclipstyle D:\Dev\Workspaces

# unix (clone previously exported prefs)
java -jar eclipstyle.jar clone ~/Dropbox/eclipse_prefs ~/dev/workspaces

Download Binary Release

You can download the latest release here.

Samples

Feel free to import my formatter profile or preferences.

Credits

picocli for command line argument parsing.