How do I import/add an existing Python file to a PyCharm project?
In the Project tool window, right-click a file or folder, then select Deployment | Upload to from the context menu, and choose the target deployment server or server group from the list. If the default server or server group is appointed, you can also select Upload to <default deployment server or server group>.
In the editor, press Ctrl+Alt+Insert to add a class, file, or package. If the focus is inside the Project tool window and you want to add a new element, press Alt+Insert . To create a new Scratch file, press Ctrl+Alt+Shift+Insert . PyCharm creates a temporary file that you can run and debug.
Copy the files to some directory under the project root using your favorite file manager or add the directory containing your files to the project using Settings
(Preferences
on Mac) | Project Structure
| Add Content Root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With