Use clear filenames
Prefer ticket_calculator.py to work.py. Never use spaces or symbols in Python filenames.
Connect the school licence, create a Python project, switch off automatic code suggestions and learn the small habits that make PyCharm easier to use.
Follow these steps exactly. The licence is provided through the school JetBrains License Vault, so you do not need to buy anything or start a trial.
Wait for the welcome screen or editor to finish loading.
Choose Help → Register… or Help → Manage Subscriptions…. The wording depends on the installed version.
Paste this exact address into Server address:
https://jghs.fls.jetbrains.comDo not enter oauth.fls.jetbrains.com; that different address may appear automatically later.
Choose Test Connection. A successful test confirms that PyCharm can reach the school licence service.
Choose Activate. Your browser should open. Sign in using your school email address ending in @ea.edin.sch.uk.
Check that the licence window now says PyCharm is licensed or activated, then close the window.
A project is the folder that holds your program files and PyCharm settings. Keep one clearly named project for each task or topic.
From the welcome screen choose New Project. If a project is already open, use File → New Project.
Save inside the folder agreed by your teacher—normally your H drive or school OneDrive. Use a clear name such as N5_Python_Practice. Do not save important work only in Downloads.
PyCharm needs a Python interpreter to run code. Keep the suggested project environment or interpreter unless your teacher tells you to change it.
Choose Create and allow PyCharm to finish setting up. Background progress appears at the bottom of the window.
Right-click the project name in the Project panel, then choose New → Python File. Name it hello_setup; PyCharm adds .py.
Right-click the file and choose Show in Explorer on Windows or Reveal in Finder on macOS. This is the real location of your file.
PyCharm has two different types of automatic suggestion. Turn off both so that you practise recalling and writing the Python yourself. Error underlines, colour highlighting and the Run button will still work.
Open Settings using Ctrl + Alt + S on Windows, or ⌘ + , on macOS.
Go to Editor → General → Code Completion → Popup
In Settings, go to Editor → General → Code Completion → Inline. In some versions this is called Inline Completion.
If grey suggested edits still appear, go to Tools → AI Assistant, switch off Next Edit Suggestions and cloud completion, then restart PyCharm.
Put this code into hello_setup.py. Run it and check that both lines appear in the Run window at the bottom of PyCharm.
print("Hello from N5 Computing Science!")
print("PyCharm is ready.")
.py file, type without automatic suggestions, run the file, see its output and find the saved file in Explorer or Finder.
Prefer ticket_calculator.py to work.py. Never use spaces or symbols in Python filenames.
Right-click inside the editor and choose Run. The top-right Run button may remember a different file.
When code fails, start with the last line of the red traceback. It usually gives the error type and the most useful message.
Tracebacks name a file and line. Click the blue line link in the Run window to jump directly to it.
Use the Tab key for a new block and Shift + Tab to move code back. Python indentation changes meaning.
PyCharm saves frequently, but still use Ctrl + S. Keep assessed work in the agreed school storage location.
Use Alt + 1 to show or hide the file tree. The bold top folder is your project root.
Hover over an underline to read the message. Only apply a suggested fix when you understand what it changes.
| Action | Windows | macOS |
|---|---|---|
| Open Settings | Ctrl+Alt+S | ⌘, |
| Save | Ctrl+S | ⌘S |
| Run current configuration | Shift+F10 | Control+R |
| Comment/uncomment line | Ctrl+/ | ⌘/ |
| Find text | Ctrl+F | ⌘F |
| Undo | Ctrl+Z | ⌘Z |
Click the interpreter selector in the bottom status bar. Choose the suggested project interpreter. If none exists, ask your teacher before changing paths.
Right-click inside the file you want and choose Run. This creates or selects the correct run configuration.
Choose View → Tool Windows → Run. Drag its top edge upwards if it is too small.
Choose View → Tool Windows → Project, or press Alt+1 on Windows.
Check both Inline Completion and Tools → AI Assistant, then restart PyCharm. These are separate from the popup setting.
Check the License Vault address once. If the 10-minute limit is reached, move to IDLE and return to activation with your teacher later.
.py files are the important part. Find and back them up before changing project settings, environments or folders.
Setting labels checked against the current JetBrains code completion guide, PyCharm quick-start guide and interpreter guide.