Skillshare intro to Python/Unit 1/Windows text editor

From OpenHatch wiki
Jump to navigation Jump to search

Quill.png

If you need help or have questions during installation, don't hesitate to ask!

Installing Notepad++[edit]

On Windows, a good free text editor is Notepad++. Note that this is unrelated to the Windows default program called Notepad!

To install Notepad++:

To run it:

  • In Windows Vista or Windows 7, click on the Start menu, type Notepad++ in the Search Field, and hit enter.
  • In Windows XP, click on the Start menu, navigate to All Programs, and then navigate to Notepad++.

Configure Notepad++ to indent with spaces[edit]

  • Click Settings -> Preferences
  • Find the tab labeled "Language Menu/Tab Settings"
  • Find the box labeled "Replace by space", and make sure it is checked
  • Click Close.

That's it! Now, you can press Tab to indent your code, and that indentation will actually be made of spaces. We do this because Python doesn't like it when we mix tabs and spaces.

Success![edit]

Now you have an editor that you can use to open any text file, including Python programs.

Champagne.pngParty.png

« Back to the Unit 1 main page