Remove log when open files from the command line
已回答
Hi, After I update to the latest IntelliJ CE version.
When I open project from Terminal is always show the log.
How I can open the project without show the log?
Thanks
请先登录再写评论。
You can redirect console output to a file. Please see https://stackoverflow.com/a/57313271/12844632 for more details
Can I do that without redirecting console output, because in the previous version the log was not shown
Please try to create a new command line launcher for your IDE:
- press Shift twice in the IDE and switch to Actions tab
- type Create Command Line Launcher and select the corresponding option from the list
- try to launch the IDE using this launcher
The new version told me to add register IDEA to $PATH, I do that but after running `idea`, the log is always shown
This is IntelliJ Idea I use
I can recommend you install JetBrains Toolbox app, install IDEA from here and configure command line script via Toolbox settings:
- https://prnt.sc/gX7qHAF2F0Fn
- https://prnt.sc/05zqhizbUn2K
- https://prnt.sc/Eo7uFtxpQ86m
It's better to use the following command in your bashrc / zshrc file, so that it loads every time you start your terminal.
Once the below command is added to the rc file, you can directly use by command `idea .`
This should be resolved starting with 2023.3 EAP2 available at https://www.jetbrains.com/idea/nextversion/.
See https://youtrack.jetbrains.com/issue/IDEA-312922/macOS-command-line-launcher-emits-diagnostic-output for more information.
I have done this with the two lines in
.bashrc:The last line creates an alias for shorthand that also removes the log output when opening the application from terminal