PyCharm: Hotkeys, Tips

PyCharm is the best IDE for working with Python. The editor allows you to access the command line, to connect to a database, to create a virtual environment, and to manage your subversion in one place.

Hotkeys

ShortcutAction
Double ShiftQuickly find in Pycharm. You can use it to search for any file, action, class, symbol, tool window, or setting.
Ctrl+Shift+AFind a command and execute it, open a tool window, or search for a setting.
Alt+EnterFix mistakes in your code. You can do this quickly by fixing the errors and warnings. Fixing these will improve and optimize your code.
F2/Shift+F2Jump among highlighted errors
Ctrl+EIt opens a popup to select recently opened file
Ctrl+W/Ctrl+Shift+WIncrease or decrease the selected texts.
Ctrl+/ Ctrl+Shift+/This apply line comment or block coomment to code lines
Alt+F7Each time a code element is used in your project, show the place where it is used

Tips

Open multiple tabs of the same file

This action allows developer to work on different parts of the same file easily.

  • Windows > Editor Tabs > Split Horizontally/Vertically

Disable Tabs

Tab has always been the default way in all editors to switch among files in a project.

But tabs have downsides. Lots of mouse use and clutter. You will need another way to deal with tabs, like the tab key on your keyboard.

If you want to disable tabs, here are steps to do so in PyCharm:

  • Open File > Settings.
  • Expand Editor > General then access Editor Tabs.
  • In Placement drop-down, pick None.
  • Click OK to save the setting.

Find Action

You can use your keyboard, but you need to remember the shortcuts. To find things faster, search with the keyboard in Find Action popup.

Don’t memorize a variety of shortcuts. Instead, commit to one and make it memorable: the Find Action shortcut (Double Shift). You’ll have quick access to every action with just your keyboard.

Leave a Comment

Your email address will not be published. Required fields are marked *

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close