From fcfe0efaff4a410f1dd45d945cce1049cda85f70 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Sun, 27 Oct 2024 17:32:41 +0200 Subject: [PATCH] Setup `idea` command for Intellij Idea. How to setup `idea` command. --- JetBrainsIDEs/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/JetBrainsIDEs/README.md b/JetBrainsIDEs/README.md index 910cbd36..9053bfa2 100644 --- a/JetBrainsIDEs/README.md +++ b/JetBrainsIDEs/README.md @@ -59,6 +59,16 @@ Go to [their website](https://www.jetbrains.com/products.html?fromMenu#type=ide) Alternatively, use the [Jetbrains Toolbox App](https://www.jetbrains.com/toolbox-app/) to manage product installations. +## Command line usage setup + +setup `idea` command: + +```sh +sudo mkdir -p /usr/local/bin && echo '#!/bin/sh\n\nopen -na "/Applications/IntelliJ IDEA.app" --args "$@"' | sudo tee /usr/local/bin/idea > /dev/null && sudo chmod +x /usr/local/bin/idea +``` + +Follows command line setup instructions from here: https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html + ## Pricing If you're a **student** or an **instructor** (teaching staff members) all IDEs from JetBrains are free to use. You can read more on [their website](https://www.jetbrains.com/student/). If you're not a student they still offer a few free Community Edition (CE) IDEs. Check out [IntelliJ](https://www.jetbrains.com/idea/) (Java) or [PyCharm Edu](https://www.jetbrains.com/pycharm-edu/).