Philadelphia Python Workshop/Setup/Linux text editor: Difference between revisions

Content added Content deleted
imported>Abatula
No edit summary
imported>Abatula
No edit summary
Line 23: Line 23:
# Save the settings by pressing <code>Ctrl+s</code> or clicking on File, then Save.
# Save the settings by pressing <code>Ctrl+s</code> or clicking on File, then Save.
# Now every time you press the tab key, it should insert four spaces instead of a tab.
# Now every time you press the tab key, it should insert four spaces instead of a tab.



== Komodo Edit ==
== Komodo Edit ==
Line 44: Line 43:
# In both Global Indentation Settings and Per Language Indentation Settings, make sure Prefer Tab characters over spaces is UNchecked, and make sure both fields for Number of spaces per indent and Width of each Tab character are 4.
# In both Global Indentation Settings and Per Language Indentation Settings, make sure Prefer Tab characters over spaces is UNchecked, and make sure both fields for Number of spaces per indent and Width of each Tab character are 4.
# Click on OK. Now the editor should add four spaces instead of a tab character when you press the tab button.
# Click on OK. Now the editor should add four spaces instead of a tab character when you press the tab button.



== GEdit ==
== GEdit ==
Line 70: Line 68:


That's it! Now, you can hit tab to indent your code, and that indentation will actually be made of spaces. This change will help you use spaces consistently, so that Python doesn't get confused about whitespace.
That's it! Now, you can hit tab to indent your code, and that indentation will actually be made of spaces. This change will help you use spaces consistently, so that Python doesn't get confused about whitespace.



== Success! ==
== Success! ==