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:
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.
- Configure Sublime Text command-line tool
subl
(if you haven't already) - In Intellij IDEA, click on
Intellij IDEA
->Preferences...
[or press CMD+,] - Find
External Tools
(underIDE Settings
) - Click on the plus (+) icon [or press CTRL+N]
- 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