Home  >  Article  >  Backend Development  >  How to open a new file in pycharm

How to open a new file in pycharm

下次还敢
下次还敢Original
2024-04-18 02:09:12990browse

There are two ways to open a new file in PyCharm: use shortcut keys: Windows/Linux: Ctrl N, macOS: Command N Through the menu bar: click File > New, select the file type

How to open a new file in pycharm

How to open a new file in PyCharm

There are two ways to open a new file in PyCharm:

1. Use shortcut keys

  • Windows/Linux: Ctrl N
  • macOS: Command N

2. Using the menu bar

  • Click File# in the top menu bar ##, then select New, and then select the file type.

Open files of specific types

In addition to opening blank files, you can also open files of specific types:

  • Python File (.py): As mentioned above, use shortcut keys or the menu bar to open a new file.
  • Project File (.pyproj): Click File in the top menu bar, select New, and then select Project.
  • Folder: Click File in the top menu bar, select New, and then select Directory.

Other Tips

    You can also open files by dragging and dropping them into the PyCharm window.
  • If you want to open multiple files at the same time, use any of the above methods to open a new tab for each file.
  • When you open a new file in PyCharm, it will automatically be added to the current project.

The above is the detailed content of How to open a new file in pycharm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn