Remove log when open files from the command line

Answered

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

0
8 comments

You can redirect console output to a file. Please see https://stackoverflow.com/a/57313271/12844632 for more details

0

Can I do that without redirecting console output, because in the previous version the log was not shown

0

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

0


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

0

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

 

 

0

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 .`

function idea() {
    open -a "IntelliJ IDEA" "$1"
}
0

I have done this with the two lines in .bashrc:
 

## Make WebStorm accessible from terminal
export PATH="$PATH:/Applications/WebStorm.app/Contents/MacOS"
alias ws="webstorm > /dev/null 2>&1"

The last line creates an alias for shorthand that also removes the log output when opening the application from terminal

0

Please sign in to leave a comment.