PyCharm is a dedicated Python IDE that provides you with a huge range of tools for Python developers to create an easy environment for:
- Productive Python coding.
- Web applications and websites.
- Data Science projects.
We have a table of over 16 PyCharm keyboard shortcuts for Windows and Mac available in PDF. These range from launching basic settings, to adding comments, and navigation.
Why do people use PyCharm?
PyCharm is a helpful IDE and below are the 6 reasons why people use PyCharm:
- Smart code completion.
- Code inspections.
- Quick fix.
- Highlights error.
- Automated code refactoring.
- Rich navigation capabilities.
There are also some downsides which are mentioned below:
Good have some bad effects as well:
- Takes more space.
- The professional version is a bit expensive.
- The community version is best only for the development of python.
Why use Keyboard Shortcuts or Hotkeys
These make your life easier by quickly performing actions and saving you from looking into menus and finding options. These are also known as hotkeys and are usually a combination of keys that when pressed one time perform specific tasks. These are supported by most of the apps and operating systems.
- Ctrl + C: To Copy.
- Ctrl + V: To Paste.
These bring good in the following ways:
- You can use the system more easily.
- You become both fast and productive at handling your system/
- Work faster.
- More efficiency with increased precision.
- If you have mobility or vision disabilities then these are indispensable.
How are Keyboard Shortcuts Used (Common Tip)
It’s all a piece of cake, you simply need to:
- Hold down one or more than one modifier key.
- After this press a letter.
Modifier keys include Ctrl – which is found there on the left and right sides of your keyboard.
These can also be used; we have listed down some examples for you to understand easily:
F7: Spell Checker.
You can also use these with the modifier keys:
Shift + F7: Open Thesaurus in Microsoft Word.
16 Best PyCharm Keyboard Shortcuts that will save you a lot of time (Windows 10/11 and Mac)
In below table you can find shortcuts for all from editing, navigation, refactoring, debugging, etc. With help of these, you will have:
- Increased productivity.
- Configurable shortcuts.
- You can assign shortcuts to any action you want.
PyCharm Keyboard Shortcut Combination
What they do
Press Double Shift
With this search everywhere: quickly find file, action, class, tool, and symbol, window, set in PyCharm there in the project as well as in current Git repository.
Ctrl + Shift + A
With this find actions including: find command and then execute it, open the tool window and search regarding any setting.
Alt + Enter
It shows all Context Actions: fix highlighting errors and warnings quickly, intension actions to improvise and optimize code.
With this navigate between code problems.
Shift + F2
It helps you to jump towards the last or next highlighted error.
Ctrl + E
Helps you to show recent files.
Ctrl + W
Helps you to extend or even shrink selection.
Ctrl + Shift + W
You can easily increase or decrease scope of selection in accordance to certain code constructs.
Ctrl + /
With this you can easily add in or remove line or even block the comment.
Ctrl + Shift + /
Commend on the line or block code.
Alt + F7
It shall show all the places where code element is used in your project.
PyCharm Keyboard Shortcut Best Practices
Select correct keymaps
You need to open the setting or preferences dialog Ctrl + Alt + S and then choose “Keymap”.
Use predefined Keymap
This is suggested automatically depending upon the environment. Just be sure that it has compatibility with your operating system or choose the one which matches shortcuts from other IDE such as Visual Studio 2022 or editor which you are used to.
In Emacs when you see the documentation, you can use shortcuts for Keymap in IDE- select using the selector present at top of the page.
This is how you can get predefined key mappings:
- You need to open the setting or preferences dialog Ctrl + Alt + S.
- Choose plug-ins.
- Once done move to the marketplace tab.
- Make a search for Keymap.
Modify the copy of the required pre-defined Keymap in order to assign personal shortcuts for commands being used frequently.
Change Default PyCharm shortcuts
If you have a Keymap that is customized then you can always transfer this to your installation.
If after an update it does not work, then it means that Keymap is not available in the new version default. All you need to do is find it as a plug-in and then install it on the plug-ins page as mentioned.
You need to be sure that it is enabled in an installed tab on the plug-ins page present in IDE settings.
If you want to open the learn tool window then you need to begin with your exercises, all you need to do is:
- Choose “view” > tool window > learn or help > learn IDE features there from the main menu.
- With find action, you can search for commands and set them across tools and menus.
From the keyboard press Ctrl + Shift + A and begin typing, you shall get a list of recommended actions. After these just choose the necessary action and hit enter.
From the keyboard select Alt + Enter to add or change a shortcut for any action.
Install Key Promoter X Plugin
Key Promoter X is a plugin that is used to show pop-up notifications with the corresponding shortcut when through mouse command is executed. Moreover, it also recommends you to create a shortcut for commands you frequently execute.
If a predefined map is being used then what you can do is print the default reference card and then keep it on your desk to make consultation if required. You can find the chart sheet under Help|keyboard shortcuts PDF. You can use Keymap exported plug-in you can print non-default or even a customized Keymap.
You may also find custom extensions and plugins, not in the Jetbrains official library that are also helpful.
Take your shortcuts to the next level
It further makes our lives easy by having some more good qualities which we have listed below:
Use Speed Search
When you have your focus on the tool window with tress, list, or table just type to see items matching
Utilise Smart Keys the easier way
You shall be getting many assistance features like:
- Adding paired tags and quotes.
- Detecting CampelHump words.
Control PyCharm Window with shortcuts
This can be done with help of your shortcuts rather than a mouse:
- Ctrl + Alt + Shift + Left and Ctrl + Alt + Shift + Right: It helps to resize too window.
- Ctrl + Alt + Shift + Up and Ctrl + Alt + Shift + Down: It helps to resize horizontal tool window.
- If you use a group of actions, create a quick list in order to access them via a custom shortcut.
Two examples below:
- Ctrl + Alt + Shift + T: Refactor this.
- Alt+: VCS Operations.
PyCharm All Keyboard Shortcuts Cheat Sheet PDF and Print Version
You can download PyCharm cheat sheet with all the keyboard shortcuts that you can also print to put on the office wall or your room as a poster.
This is a copy of the table we have above.
Fix PyCharm Keyboard Shortcuts Not Working
If you are having issues activating the shortcuts or if they are not working follow the below troubleshooting steps to fix:
- Check if your sticky keys are not on.
- Does your keyboard have an (Fn – Function) key? If so use this along with the combinations shared above.
- Make sure you are using an English layout.
- Click inside the IDE and then try the combination again.
Shortcuts save you a lot of time when you are doing your tasks in PyCharm. As a programmer, there are sometimes deadlines that require meeting very quickly. Using such keymappings and shortcuts can cut your delivery time so you are more efficient in delivering the project. You can also create your own shortcuts if the default ones are not comfortable or require too many combinations.