![]() You can navigate the tree using the arrow keys and search by typing. ⌘1 (MacOS) or Alt 1 (Windows/Linux) opens the project window and puts the focus in there. We don’t need the mouse to open tool windows either. Combine this with either Alt Enter, to see all suggestions and pick one, or Shift Alt Enter to apply the first suggestion. We don’t want to use the mouse when navigating between errors and warnings in the editor, so use F2 to jump to the next error, warning or suggestion. We can even use Alt Enter on code that doesn’t have an error, warning or suggestion: it will show us Intention Actions (one of my personal favourites is to add static imports) and Inspections that are enabled but not set to warn us. We can also use Alt and Enter where we see warnings and suggestions and we can choose to accept one of these suggestions. When we see an error in our code, if we place the cursor on the error and press Alt Enter we get a list of suggested fixes for the problem. This keyboard shortcut can be used to fix just about anything by showing us actions for the current context. There’s a video of all these shortcuts in action on the IntelliJ IDEA YouTube channel. Learning and practicing these shortcuts so they get loaded into our muscle memory can help us to stay in the state of flow. Note: Replace the path with the actual path to the idea64.exe file on your system, and make sure to include the quotes around the path and the "%V" parameter.IntelliJ IDEA has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and pretty much everything else we might want to do regularly. In the right-hand pane, double-click on the "(Default)" value and enter the following path: "C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\bin\idea64.exe" "%V" Right-click on the new key and select "New" -> "Key". Name the new key "Open with IntelliJ IDEA" (or any other name you prefer). Right-click on the "shell" key and select "New" -> "Key". In the Registry Editor, navigate to the following path: HKEY_CLASSES_ROOT\Directory\Background\shell In the Run dialog box, type "regedit" and press Enter to open the Registry Editor. Right-click on the Windows Start button and select "Run" (or use the Windows Key R shortcut). By default, it can be found in the "bin" folder of your IntelliJ IDEA installation directory. Type the path to your idea64.exe, for me it's C:\Users\Tom\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\212.5284.40\bin\idea64.exe.ġ.Locate the IntelliJ IDEA executable file (idea64.exe) on your system.STEP 4: Set an icon to the context menu option Clicking on it will open IntelliJ in the current folder. Type "PATH TO idea64.exe" "%V", for me it's "C:\Users\Tom\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\212.5284.40\bin\idea64.exe" "%V"Ĭomplete this third step allow you to see your context menu in the right click folder. ![]() Click on the command folder you have created.Right click on the folder corresponding to your context menu option, IntelliJ for me.STEP 3: Set the action when the context menu option is clicked In the value data field, name your context menu option, for example Open as project.Right click on (Default), then Modify.Click on the folder corresponding to your context menu option, IntelliJ for me.Name the folder as you like, for example IntelliJ. Right click on the shell folder, then New, then Key. Go to Computer\HKEY_CLASSES_ROOT\Directory\Background\shell ⚠️ Do not forget the Background folder, which is missing from other Stackoverflow answers. Open your Registry Editor by pressing WIN R, then typing regedit. Top answser doesn't work on Windows 11 (and maybe 10). I hope you found this helpful! Good Luck! Set Data Value to Intellij IDEA exe file.Right Click and choose ' New > String Value'.Click on the Key you made in step 6 and set '(Default)' value to the text you want to see.(I set mine to "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\bin\idea64.exe %1").Īlso, on Windows 10, set Value Data to your Intellij IDEA program location plus " %1" (I set mine to "C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.1\bin\idea64.exe" "%1"). Set Value Data to your Intellij IDEA program location plus ' %1'.Click on command and right click on ' (Default)', then click Modify.Right Click on your new Key and add another new Key.Type in name of action (can be anything).Right click on ' shell' and select ' New > Key'.Scroll down to ' Directory' (Quite far down the list).In the left panel, under 'Computer' select ' HKEY_CLASSES_ROOT'.Click 'Yes' to allow program to make changes to computer.Right click on Start Icon (bottom left) and click on Run. ![]()
0 Comments
Leave a Reply. |