Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to connect Intellij IDEA to Sublime Text on Mac OS X?

Tags:

I would like to find a way to open a file in Sublime Text 2 from Intellij IDEA (on Mac OS X), as to use its advanced text editing features on those occasions where writing "normal text" is not enough!

like image 408
Takhion Avatar asked Apr 21 '13 11:04

Takhion


People also ask

Is Sublime Text better than IntelliJ?

I would definitely go with Jetbrains IntelliJ. Sublime Text is pretty nice, but it doesn't have auto-completion for libraries and doesn't give a real code navigation functionality. It does have code completion based on the language and also records the typed instructions. It doesn't support interactive debuggers.

Can you use Sublime Text on Mac?

Sublime Text can now utilize your GPU on Linux, Mac and Windows when rendering the interface.

How do I open IntelliJ files on Mac?

Run the IntelliJ IDEA app from the Applications directory, Launchpad, or Spotlight. Run the idea.sh shell script in the installation directory under bin. You can also use the desktop shortcut, if it was created during installation.


1 Answers

The following is as far as you can go, without getting your "hands dirty" with writing plugins; even so, it will open the file preserving cursor position and also add the file folder to the sidebar.

  1. Configure Sublime Text command-line tool subl (if you haven't already)
  2. In Intellij IDEA, click on Intellij IDEA -> Preferences... [or press CMD+,]
  3. Find External Tools (under IDE Settings)
  4. Click on the plus (+) icon [or press CTRL+N]
  5. Fill in the fields like this:

Keep in mind that in the Program field you will need to put where you installed subl!

Update for Sublime Text 3:

Assuming Sublime Text is in /Applications, you can use this for the Program field: /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl

like image 182
Takhion Avatar answered Oct 20 '22 12:10

Takhion