Is it possible to get something like `code .` In s...
# announcements
a
Is it possible to get something like
code .
In shell which opens VSCode in the current directory but for intellij? Like
intellij .
That launches intellij for the current dir - create or open if not exists the project
a
Did you mean
idea .
?
Or sometimes its idea64 btw
c
jetbrains toolbox has a setting for that
v
No need for the toolbox actually, even the normal installer has that option and if you didn't select it, just add the program directory to your path variable.
2
r
assumption is you're using IntelliJ Idea Ultimate 2020.3.1 Preview/EAP. adjust the path(s) accordingly as per your machine. create an
idea.cmd
file and copy the following content and save it to a location that can be found on your system/user path:
@echo off
set waitarg=
set ideargs=
:next
set "passwait="
if "%~1"=="--wait" set passwait=1
if "%~1"=="-w" set passwait=1
if defined passwait (set waitarg=/wait)
if not "%~1"=="" (
if defined passwait (set "ideargs=%ideargs%--wait ") else (set "ideargs=%ideargs%%1 ")
shift
goto next
)
start "" %waitarg% %LOCALAPPDATA%\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.6682.78\bin\idea64.exe %ideargs%
v
But why if you simply can use
idea
or
idea64
directly?
a
Idea or idea64 arent working for - command not found
v
If "command not found" then you didn't select in the installer to add the path to the PATH environment variable and you need to add it manually as I said before
a
Add what program to my path?
v
The
bin
folder of the folder where intellij is installed. For me that is
C:\Program Files\JetBrains\IntelliJ IDEA 2020.1\bin
Or you re-run the installer and choose the respective option
a
Yeah, idea64 works out of the box for me, you must haven't added the bin path to the PATH when you were installing the Idea...
image.png
If you're on linux just add the path to the PATH by editing bashrc or zshrc. On windows search "env" in the search bar, open the panel, select "Environment Variables" add the
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.3\bin
to the PATH.