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
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!