Home  >  Article  >  Backend Development  >  How to create a new py folder in pycharm

How to create a new py folder in pycharm

下次还敢
下次还敢Original
2024-04-19 14:51:361165browse

How to create a new Py folder in PyCharm: Open the file manager and navigate to the project root directory. Right-click the project root directory and select New > Directory. Enter the folder name and click OK. Right-click the project root directory, select Add > Existing Directory, navigate to the new folder and select OK.

How to create a new py folder in pycharm

How to create a new Py folder in PyCharm

The method to create a new Py folder in PyCharm is as follows:

Step 1: Open File Manager

  • On Windows, press Ctrl Alt N.
  • On macOS, press ⌘ N.

Step 2: Navigate to the project root directory

  • In the file manager, navigate to the root directory of your project.

Step 3: Create a new folder

  • Right-click the project root directory and selectNew > Table of contents.
  • Enter the name of the new folder, such as "my_folder".

Step 4: Add the folder to the project

  • In PyCharm, right-click the project root directory and selectAdd > Existing directory.
  • Navigate to the newly created folder and select OK.

In this way, you have successfully created a new Py folder in the PyCharm project. You can save Python files in this folder to organize your code and keep your project organized.

The above is the detailed content of How to create a new py folder 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