Question

Any one else getting lots of indentation syntax errors when writing python in panics coda IDE? Ive been getting a lot of these, and just shuffling my code around seems gets rid of the error. Bug?

Was it helpful?

Solution

This is usually due to shifting between tabs and spaces as tabs. I've set my invisible character color (Preferences -> Colors) to be visible on the page so that I can see if I'm using tabs or spaces. The Python standard is to use 4 spaces for a tab. I've set this as the default as well (Preferences -> Editor then uncheck 'Use tabs' and set tab width to 4). Finally, you can clean up a file that switches between tabs and spaces or is using tabs instead of spaces by selecting the text and then going to the Text menu and selecting Detab.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top