是否有 "light version" IntelliJ IDEA 可以在没有项目的情况下编辑文件?
Is there a "light version" IntelliJ IDEA to edit files WITHOUT a project?
可以从单个文件的命令行调用 ItelliJ IDEA - 如此处所述:
- Running IntelliJ IDEA as a Diff or Merge Command Line Tool
- Intellij like Text Editor(顺便说一句,没有回答我的问题!)
但是,您似乎必须向 IntelliJ 提供一个 项目,如下所述:
In the command line, type the following:
[IntelliJ IDEA] [path1] --line [number] [path2]
where:
[IntelliJ IDEA]
is the platform-specific product launcher
[path1]
is the path to the project that contains the desired file
[number]
is the number of the line, where the caret should rest
[path2]
is the path to the file to be opened
有没有办法使用 "light version" 的 IntelliJ IDEA 作为纯文件编辑器,没有项目?
IntelliJ IDEA 是某些文件类型的特别好的编辑器,例如 Java、XML、HTML,...我想将它与这些类型相关联并且从 Total Commander 使用它,但目前 Idea 打开速度太慢,所有项目开销。我有时需要跨项目编辑文件。
更新:现在支持使用 LightEdit 模式。
原回答:
暂时不能,有相关请求(2010 年 12 月 11 日创建),您可以投票给:
- IDEABKL-5939 使用 IDEA 作为通用文本编辑器
从 IntelliJ IDEA 2020.1 开始,有 LightEdit Mode。真的很轻:)
LightEdit mode lets you use IntelliJ IDEA’s text editing features without creating or opening a dedicated project. In LightEdit mode, a file is opened in a separate editor window which may coexist with other (project) windows.
The mode has certain limitations: it offers simpler code completion (or sometimes none at all), no code inspections, only basic code highlighting that doesn’t require sophisticated code analysis, and so on. But if you just need to open a single file, make a few changes, and save, LightEdit is the quickest way to do it, and you don’t have to use a third-party editor either.
即将推出的 JetBrains Fleet 编辑器最终发布时(可能是 2022 年的某个时间)应该符合要求。 LSP 可能是程序员工具领域最近最伟大的发明。我很高兴微软在它方面发挥了足够的带头作用,现在它正被 JetBrains 采纳。
同时,还有LightEdit模式,或者干脆切换到其他编辑器来完成任务。
可以从单个文件的命令行调用 ItelliJ IDEA - 如此处所述:
- Running IntelliJ IDEA as a Diff or Merge Command Line Tool
- Intellij like Text Editor(顺便说一句,没有回答我的问题!)
但是,您似乎必须向 IntelliJ 提供一个 项目,如下所述:
In the command line, type the following:
[IntelliJ IDEA] [path1] --line [number] [path2]
where:
[IntelliJ IDEA]
is the platform-specific product launcher
[path1]
is the path to the project that contains the desired file
[number]
is the number of the line, where the caret should rest
[path2]
is the path to the file to be opened
有没有办法使用 "light version" 的 IntelliJ IDEA 作为纯文件编辑器,没有项目?
IntelliJ IDEA 是某些文件类型的特别好的编辑器,例如 Java、XML、HTML,...我想将它与这些类型相关联并且从 Total Commander 使用它,但目前 Idea 打开速度太慢,所有项目开销。我有时需要跨项目编辑文件。
更新:现在支持使用 LightEdit 模式。
原回答:
暂时不能,有相关请求(2010 年 12 月 11 日创建),您可以投票给:
- IDEABKL-5939 使用 IDEA 作为通用文本编辑器
从 IntelliJ IDEA 2020.1 开始,有 LightEdit Mode。真的很轻:)
LightEdit mode lets you use IntelliJ IDEA’s text editing features without creating or opening a dedicated project. In LightEdit mode, a file is opened in a separate editor window which may coexist with other (project) windows.
The mode has certain limitations: it offers simpler code completion (or sometimes none at all), no code inspections, only basic code highlighting that doesn’t require sophisticated code analysis, and so on. But if you just need to open a single file, make a few changes, and save, LightEdit is the quickest way to do it, and you don’t have to use a third-party editor either.
即将推出的 JetBrains Fleet 编辑器最终发布时(可能是 2022 年的某个时间)应该符合要求。 LSP 可能是程序员工具领域最近最伟大的发明。我很高兴微软在它方面发挥了足够的带头作用,现在它正被 JetBrains 采纳。
同时,还有LightEdit模式,或者干脆切换到其他编辑器来完成任务。