[Tutor] Comment
Alan Gauld
alan.gauld at btinternet.com
Tue Sep 10 21:48:31 EDT 2019
On 23/08/2019 23:36, Olsen, Avalow Y wrote:
> Is there a mechanism to comment out large blocks of Python code?
You have correctly identified the options but there is usually tool support
in IDEs and intelligent editors. Look for a "comment out" menu option
where you can use the mouse (or keyboard)to select a region and
have the editor comment it out.
Eclipse, Netbeans, vim and IDLE all have it (the ones I use most)
and I'm sure most of the others do too.
Also many editors include folding support where the editor will
hide lines inside , for example, class or function definitions, to make
code more readable.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list