EdSharp: Something I Just Realized About Coding In Python

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 8 Oct 2010 15:46:56 -0400

Hi,
I don't know why I missed this before, but it made me happy when I found out 
about it. You may or may not know that EdSharp has this command that lets you 
program in Python using braces to mark off code blocks as you would in other 
languages such as C#, C++ and so on, and then have it strip the braces and turn 
your file into a Python program in a new window. That bothered me, because I'd 
rather code in Python syntax.

Here's what made me happy about the command. Let's say that you have a Python 
file. It doesn't matter how you indent it. You could initially have everything 
at the left margin. If you simply press Alt + Left Bracket, EdSharp formats 
your file using the indentation scheme set up for its Python compiler settings, 
and places comments at the ends of code blocks.

So in summary, if you have a Python file you're working on, you can fix any 
indentation issues automatically right before you compile it.

I discovered this because I got a Python file that seemed to be indented by 
increments of something like eight spaces. My Python compiler settings are 
configured to indent by two spaces, so that it's nicer to see my files with a 
Braille display without quickly running out of Braille cells.

Thanks again, Jamal. You made my day.


Jim

Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Internal recipients,  Read my accessibility 
blog<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx>. Discuss 
accessibility 
here<http://collaborate.highmark.com/COP/technical/accessibility/default.aspx>. 
Accessibility Wiki: Breaking news and accessibility 
advice<http://collaborate.highmark.com/COP/technical/accessibility/Accessibility%20Wiki/Forms/AllPages.aspx>


________________________________
This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

Other related posts:

  • » EdSharp: Something I Just Realized About Coding In Python - Homme, James