Aveshen Pillay
Aveshen Pillay

Reputation: 481

Keyboard shortcut with PyCharm to create new file

Good day, I am currently using PyCharm 2021.1.1 (Community Edition) on macOS 11.4.

I would like to use the keyboard shortcut to generate a new Python file.

When using the following: Command + N, I get the following screen:

enter image description here

My expectation when clicking Command + N, is the following screen:

enter image description here

What am I doing incorrectly?

Upvotes: 1

Views: 1432

Answers (1)

s0xzwasd
s0xzwasd

Reputation: 3224

Command+N is Generate shortcut if you're focusing on the editor. You can confirm that by using Find Actions by Shortcut in the settings: Preferences | Keymap. enter image description here

There are a couple of ways to use New as a shortcut for creating a new file.

  • Switch focus to Project View (Command+1 by default) and press Command+N.
  • Assign a new shortcut to New action in the settings. It has the benefit that you can use the pop-up exactly from the editor pane without switching to Project View.enter image description here

Upvotes: 3

Related Questions