Skillshare intro to Python/Unit 1/Linux text editor: Difference between revisions

From OpenHatch wiki
imported>Jesstess
(Created page with "== How to find gedit in the Applications list == On Linux, we suggest the GEdit text editor. GEdit should already be installed on your computer. To start GEdit: click Appli...")
 
imported>Jesstess
m (Protected "Skillshare intro to Python/Unit 1/Linux text editor" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)) [cascading])
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
__NOTOC__
== How to find gedit in the Applications list ==
 
   
  +
[[File:Quill.png|100px]]
On Linux, we suggest the GEdit text editor.
 
   
  +
Lucky for us, Linux comes with a good, free text editor called GEdit.
GEdit should already be installed on your computer. To start GEdit: click Applications, point to Accessories, and click Text Editor. If you don't have this option, let a staff member know.
 
  +
  +
If you need help or have questions while checking your GEdit installation, [[Skillshare intro to Python/Asking questions| don't hesitate to ask]]!
  +
  +
== Finding GEdit ==
  +
 
To start GEdit: click Applications, point to Accessories, and click Text Editor. If you don't have this option, let a staff member know.
   
 
== How to find GEdit from a terminal ==
 
== How to find GEdit from a terminal ==
Line 10: Line 16:
   
 
<pre>
 
<pre>
gedit &
+
gedit
 
</pre>
 
</pre>
   

Latest revision as of 00:34, 13 June 2013


Quill.png

Lucky for us, Linux comes with a good, free text editor called GEdit.

If you need help or have questions while checking your GEdit installation, don't hesitate to ask!

Finding GEdit

To start GEdit: click Applications, point to Accessories, and click Text Editor. If you don't have this option, let a staff member know.

How to find GEdit from a terminal

If you prefer to start applications from a terminal, you can type the following into a terminal to launch GEdit:

gedit

Configure gedit to indent with spaces

  • Click Edit -> Preferences
  • Select the tab labeled "Editor"
  • In the "Tab width" field, set it to 4 (the default is 8)
  • Check the box labeled "Insert spaces instead of tabs"
  • Check the box labeled "Enable automatic indentation"
  • Click Close.

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!

If you prefer a different editor for text, check with an instructor before moving on to make sure it will work for the weekend.

« Back to the Unit 1 main page