Bookmark and Share

Lst verification: 2017-8, macOS 10.12.6, Eclipse 4.7.0.

eclipse.ini

Memory size

On macOS, the configuration file

 ../Eclipse.app/Contents/MacOS/eclipse.ini

or for Eclipse 4.5 and later:

 ../Eclipse.app/Contents/Eclipse/eclipse.ini

has

-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731
-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms1024m
-Xmx1536m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts

  • Xms and Xmx are the starting and maximum heap size for JVM running Eclipse, respectively. Heap stores objects, so anything that create large number of objects will require large value for Xmx
  • PermSize and MaxPermSize are for memory storing classes (data structures, not object instances) so they normally don't need to be large.
  • -Xss2m sets the Java stack size to 2MB; If it requires very deep level of recursion and can have large inputs, a stack size too small may cause java.lang.StackOverflowError

-Dorg.eclipse.swt.internal.carbon.smallFonts

On high-resolution displays, removing

-Dorg.eclipse.swt.internal.carbon.smallFonts

is said to make the font size larger for some GUI elements. But I couldn't notice any difference.

References:

  • http://apple.stackexchange.com/questions/24621/how-do-increase-font-size-of-eclipse-globally

Preferences

Note preferences are workspace specific and you can export, save, and import preferences metadata using menu File ⟶ Export ⟶ Preferences [1].

  • Preferences ⟶ General ⟶ Compare/Patch ⟶ enable "Ignore white space"

  • Preferences ⟶ General ⟶ Keys ⟶ Scheme:Emacs

  • Preferences ⟶ General ⟶ Network Connections

    • ⟶ SSH2: add private keys
  • Preferences ⟶ General ⟶ Editors

    • Size of recently opened files list: 15 (the maximum)
    • ⟶ Text Editors:
      • Check "Show print margin"
      • Check "Insert spaces for tabs"
      • Check "Show whitespace characters"
    • ⟶ AnyEdit Tools:
      • Convert: Tab width/number of spaces for tab: 4
  • Preferences ⟶ General ⟶ Appearance

    • ⟶ Theme: Dark

    • ⟶ Colors and Fonts ⟶

    • ⟶ Basic ⟶ Text Font: Source Code Pro 18

      • ⟶ CVS
        • Outgoing Change (Background): dark green
        • Outgoing Change (Foreground): white
        • Ignored Resource (Background): dark gray
        • Ignored Resource (Foreground): light gray
      • ⟶ Git
        • Uncommitted Change (Background): dark green
        • Uncommitted Change (Foreground): white
        • Ignored Resource (Background): dark gray
        • Ignored Resource (Foreground): light gray
  • Preferences ⟶ Team ⟶ CVS

Preferences ⟶ Wolfram (with Wolfram Workbench plugin)

  • ⟶ Editor
    • ⟶ Advanced: Editor update delay (ms). I use 1500 ms.
    • ⟶ Indenting: Indent with spaces
  • ⟶ Wolfram Cloud
    • User name: (email address)

Plug-ins

(If not specifically mentioned, in reasonably modern version of Eclipse, install plug-ins using the menu Help > Eclipse Marketplace.)

UI

4.4+:

Use Preferences ⟶ General ⟶ Appearance ⟶ Theme: Dark

Pre-4.4:

Java

Uqbar Tomcat XT Eclipse Plug-in

For launch and administer Tomcat's contexts.

  • As of Eclipse 4.4, one can install it from Help > Eclipse Marketplace.

Scala

  • Scala IDE.
  • As of Eclipse 4.4, one can install it from Help > Eclipse Marketplace.
  • Plug-in repository URL: http://scala-ide.org/download/current.html.

Mathematica

Version control

  • CVS Integration

    • Since Eclipse 4.5, it is no longer included in Eclipse by default. One can install it by going to the menu Help > Eclipse Marketplace and searching by keyword "CVS Integration"
  • EGit

    • Since Eclipse 4.4, it is included in Eclipse as the built-in Git support.

I don't use Mercurial and SVN any more as of Eclipse 4:

Editing

  • AnyEdit
    • As of Eclipse 4.4, one can install it from Help > Eclispe Marketplace.
    • Plug-in repository URL: http://andrei.gmxhome.de/eclipse/.

Programming languages

  • JSON editor
    • As of at least Eclipse 4.7.0 and 2017-8, one can install it from Help > Eclispe Marketplace.
  • Papyrus: UML modeling support

Misc

References

blog comments powered by Disqus