Select the profile you want to use in Sublime Text. Under Formatter, follow the link “Configure Project Specific Settings” and enable specific settings for your project. Now, go under Preferences → Java Code Style. Maybe make a new Java file in there for kicks. To create the configuration file the plugin needs, start up Eclipse and create a new Java project. "eclipse_command": "/Applications/eclipse/eclipse", On a Mac (what I use), the configuration file for the plugin is under ~/Library/Application Support/Sublime Text 2/Packages/EclipseCodeFormatter the patch to Eclipse is something like /Applications/eclipse/eclipse (actually a symlink to inside the. Once you do, you can immediately enter the path to the eclipse executable in the plugin configuration. In order to do it, you will have to up and install Eclipse. You do need to manually configure the plugin, as described on its home page (linked above). Then, use Package Control to install EclipseCodeFormatter. The easiest way to install the plugin is to first grab Package Control, which is like yum or apt for Sublime Text. Fortunately, there is an EclipseCodeFormatter plugin that can call out to Eclipse from Sublime Text to format for you. If you are working under Eclipse, this is just fine, and there is even an IntelliJ plugin otherwise, well, you may have to bounce into Eclipse just to format code. Such is the case for the Apache Accumulo project, which requires code to adhere to formatting rules saved off in an Eclipse-specific XML file. Sublime Text does perform code formatting for you, but most of the world has standardized on using Eclipse for such work. It makes up for it by being extremely extensible and customizable, using only Python and JSON. Sublime Text isn’t an IDE, however it’s only an editor, and so is missing some bits and pieces that folks used to Eclipse or Netbeans like to have. I’ll still use emacs (or vi even, yecch) over a text-only connection, but otherwise, Sublime Text is the bomb. It’s such a snappy, beautiful, powerful editor. My editor of choice for the longest time was emacs, but recently I’ve made the switch to Sublime Text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |