Use a Python IDE

A text editor CAN be used to create Python programs but it's better to use an integrated development environment (IDE) because an IDE offers extra features such as debugging and autocomplete.

The best Python IDE for EV3 Python programming is Microsoft Visual Studio Code (VS Code) because an extension is available for that editor that makes it very easy to write and run EV3 Python programs. VS Code is available for MacOS, Windows and Linux. Read more HERE.

It's very easy to configure MobaXTerm personal edition so that double-clicking a Python file automatically opens it in PyCharm Edu. Saving the file will automatically save the file back to the brick. Just choose Settings>Configuration>General to get the following dialog:

Then click the little blue square at the right of the 'default text editor program' box and navigate to the pycharm.exe file on your computer. It's as simple as that! Now, every time you double-click a file in MobaXTerm's directory listing it will open in PyCharm Edu and when you save the file it will save straight back to the EV3 brick.

It's important NOT to use MobaXTerm to make new Python files for the brick since it would be hard to make them directly on the brick or to move them to the brick later. If you want to make a new Python file on the EV3 then simply click the 'New File' icon at the top of MobaXTerm's directory listing panel and give the new file a name ending in .py, such as myfile.py. Then you can open the new file by double-clicking and get to work editing it in PyCharm Edu!