Is there a way to connect Intellij IDEA to Sublime

2019-01-30 12:16发布

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!

1条回答
祖国的老花朵
2楼-- · 2019-01-30 12:38

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

查看更多
登录 后发表回答