JetBrains DataSpell 2021.1 Help

Adding Python files

JetBrains DataSpell suggests several alternative ways to add a Python file.

Create new files

  1. Do one of the following:
    • In the Workspace tool window Alt+1, select the directory in which you want to create a new file, and then choose File | New from the main menu.

    • Right-click the corresponding directory and select New from the context menu.

    • Press Alt+Insert.

  2. Select Python File file.

    New Python file
  3. In the dialog that opens, type the name of the file in the corresponding field. Note that you should not type the filename extension.

    Adding a new Python file

    You can specify the whole directory structure prepending the new filename. If the nested directories do not yet exist, they will be created.

    Creating a new directory and a file

  4. Click OK. The new file that corresponds to the selected file template will be created under the target location.

    If the names of non-existent sub-directories were specified before the new filename, the whole structure will be created under the target directory:

    New file
Last modified: 28 May 2021