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

imported>Geography76
 
(3 intermediate revisions by the same user not shown)
Line 1:
== Our Recommendation ==
 
On OSX, we suggest using Sublime, or Komodo Edit. Sublime and Komodo Edit are both available for free, but Sublime has an indefinite free trial period, andbut requestsit thatwill prompt you to purchase a license (you can ignore this for now).
 
== Sublime ==
Line 26:
* Save the settings by pressing <code>Command+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.
 
== Komodo Edit ==
 
Komodo Edit is a free editor available from [http://www.activestate.com/komodo-edit Active State].
 
=== Installation ===
 
* Go to the [http://www.activestate.com/komodo-edit/downloads downloads page] and click on the blue button that says "Download Komodo Edit 8.0.1 for Mac OS X".
* Save the file to your desktop or downloads folder (or another convenient location).
* Double click on the file to extract it, then open the extracted folder.
* Drag the file Komodo Edit 8.app to the Applications folder (a shortcut to your computer's Applications folder)
* To run Komodo Edit:
** Search for Komodo Edit 8 in the Spotlight.
** OR Start Finder, select Applications from the left menu, then find and double-click on Komodo Edit 8.
* If the program does not run, ask a staff member for assistance.
 
=== Setup ===
 
* With Komodo as the active window, click on Komodo in the top menu, then select Preferences.
* On the left-side menu, click on Editor to expand it, then click on Indentation
* 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.
* To open a file, click on the New File label in the lower right panel. Select Python (not Python3) from the menu and then click open.
* A new file should open with <code>#!/usr/bin/env python</code> as the first line. This is a comment, and can be deleted or ignored.
* If a new file doesn't open, ask a staff member for assistance.
 
== Success! ==
 
If you prefer a different editor for text, check with an instructor before moving on to make sure it will work for the weekendrest of the workshop.
 
[[Philadelphia Python Workshop/Setup|&laquo; Back to the Friday setup page]]
Anonymous user