12

ctrl+alt+insert opens a dialog to choose the file type I want to create.
Can I specify that I want to create py file directly without choosing?

1
  • 1
    I don't think is possible without choosing. However ctrl + Alt + Shift + Insertwill help Commented Aug 23, 2018 at 9:02

2 Answers 2

13
  1. Go to File->Setting->Keymap
  2. Search "new"
  3. Under "Pyhon Community Edition" there will bean option of "Python File"
  4. Add new shortcut to this option (SHIFT+N is usually unassigned)
Sign up to request clarification or add additional context in comments.

1 Comment

Do you happen to know how to set it in the Mac pro version?
0

ctrl+alt+insert will do the same thing as setting SHIFT+N in keymap. However, exploring the second option does introduce the beginner to an interesting world below PyCharm.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.