如何确定需要使用 IntelliJ 打开文件?

How can I determine that files need to be opened with IntelliJ?

我在 Mac 上使用 IntelliJ 14.0.2 Ultimate。当我第一次打开一个特定的文件时,我确定这个文件(以及该类型的所有其他文件)需要用外部编辑器打开。例如,我指定 .md 文件需要使用 TextWrangler 打开。

如何再次将其改回 IntelliJ?

  1. 转到设置(Crtl+Alt+S,) |编辑|文件类型
  2. 在 "Recognized File Types" 窗格(顶部)中,找到 Files Opened in Associated Applications 条目和 select 它
  3. 在 "Registered Patterns" 窗格中,找到 *.md(and/or *.mkd、*.markdown 等)条目。 Select 并通过右侧的删除按钮 将其删除
  4. 单击“确定”关闭设置对话框

然后您可以将扩展注册为纯文本,或安装第三方 Markdown 插件(IDEA Plug-In Repository Page, Project's GitHub Page)。插件将自动注册 markdown 文件扩展名以打开并由插件处理。