Re: python spaces, I still don't get how it works.

You indent by 4 spaces anywhere you'd put a left brace. You unindent by 4 spaces anywhere you put a right brace.  If you turn the screen reader indentation indication on, then you will get announcements only when the indentation level changes.  You can divide this by 4 to determine how many braces deep you are.

indentation only typically increases after statements ending in :.

If you want some intuition as to why, think about what this looks like in braille.  You can just run your finger down the left side of the page, and tell when a block started or ended without having to read all the code.

If your problem is that indenting manually is painful, many editors have the ability to make the current line have the indentation of the previous, and use tab and shift+tab to indent and unindent by 4 spaces.  With a setup like that, you hit tab where you'd hit left brace, you hit shift+tab where you'd hit right brace, and the rest of it mostly works on its own.

If you need more than that you probably need to ask a specific question.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : thetechguy via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ambro86 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : rory-games via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : thetechguy via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector

Reply via email to