Mostly used IDE Hotkeys with Example every Developer must know

If you’re an IT developer then these IDE hotkeys would be very helpful. IT loves productive developer and productive love hotkeys.

If you also want to become an expert developer, then start doing hotkey. So I brought you the top 10 IDE hotkeys. Initially, when I started my first job, I used to be very slow due to a lack of knowledge of hotkeys.

Now I am using some IDE hotkeys which I am sharing with you. It is not possible to make all hotkeys tutorials in a single article. It’s not possible to create one universal hotkey tutorial – there are few keymaps out there – most popular are based on Eclipse and Netbeans.

20 + Bonus VSCode Shortcuts for Every developer should know

I will review Netbeans’ ones. For the sake of simplicity, I named the keys using Windows naming. If you are a Mac user just press CMD instead of CTRL.

So let’s start our ride.

Alt + Shift + Up/Down arrows

Moving mode line

Used for moving the current line of code up or down. When we have selected block of text it naturally moves the entire block.


Ctrl + Shift + Up/Down arrows

Copying line of code

Duplicates the current line of code. In Jetbrains’ IDEs: IntelliJ or PHPStorm it only copies the current line below. In Netbeans however it’s possible to copy line up – there is a slight difference in where is your cursor after using the hotkey.

Ctrl + J

Extend selection

In Netbeans’ keymap described as “Extend selection” which may be confusing. As you see on the GIF I don’t have anything selected at the beginning so “Extending” this selection is misleading. Selects the entire word/name.

Shift + Alt + O

Opening by file name

Opens “Open file by name” popup. What is interesting typing the name of the file using only first letters of camel-cased segments helps quickly opening files with a complex name?

Top 10 Machine Learning Open Source Projects

Ctrl + Shift + 1Navigate in directory tree

Find a current file in a directory tree and expand this particular tree branch. Jetbrains products add the ability to automatically reflects opened file in the directory tree. Personally I do not use this feature.

Alt + Shift + F

Formatting code

This hotkey formats the current file. Or if we have an active selection, formats only selected piece of code.

Ctrl + E

Line removal

Removes the current line of code. It works also for selection.

Ctrl + /

Commenting line

Comment / uncomment current line of code

Ctrl + Alt + Left / right arrow

Selecting words segments

Selecting consecutive word/expression fragments. If it’s CamelCased name – particular fragments will be selected. If it’s entire expression then adjacent operators and arguments will be selected step by step.

Ctrl + R


Rename current element (method, variable, class etc). Replaces automatically all other occurrences.

More hotkeys, please

So that’s part one of my favorite IDE hotkeys selection. In the next episode of this article, I will present a few shortcuts mostly related to code generation and dealing with automated tests.

I hope that by writing this article I will encourage at least one person to go more towards mouseless navigation.

By Tell Me How

It is a technology blog and admin has excellent experience in programming from 5+ year. You can contact us at

Share your thoughts

Leave a Reply

Loading Facebook Comments ...
Loading Disqus Comments ...