问题
ItelliJ IDEA can be called from command line on a single file - as described in here:
- Running IntelliJ IDEA as a Diff or Merge Command Line Tool
- Intellij like Text Editor (which BTW does not answer my question!)
However, it seems that you have to provide IntelliJ with a project, as described here:
- Opening Files from Command Line
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
Is there a way of using a "light version" of IntelliJ IDEA as a pure file editor, without a project?
IntelliJ IDEA is especially good editor for some file types, such as Java, XML, HTML, ... I'd like to associate it with these types and use it from Total Commander, but currently Idea opens too slowly with all the project overhead. And I sometimes need to edit files across the projects.
回答1:
It's not possible at the moment, there is a related request (created 11 Dec 2010), you can vote for:
- IDEABKL-5939 using IDEA as a general-purpose text editor
来源:https://stackoverflow.com/questions/43045478/is-there-a-light-version-intellij-idea-to-edit-files-without-a-project