It seems, that geany does something wrong with indentation. I set indentation to spaces in preferences, but it uses tabs sometimes. When there is only one tab, I get spaces. When I put two tabs, I get tabs. Am I doing something wrong? It's pretty important to me, since I am python coder and it seems, that python 3k is more strict about tabs and spaces.
On Wed, 3 Mar 2010 12:32:51 +0100 Filip Gruszczyński gruszczy@gmail.com wrote:
It seems, that geany does something wrong with indentation. I set indentation to spaces in preferences, but it uses tabs sometimes. When there is only one tab, I get spaces. When I put two tabs, I get tabs.
That is the correct behavior. One tab replaces 8 spaces.
If you prefer spaces, go to the settings of the editor, select the indent page and select the type "spaces". Note that I use a german version, so I don't know the correct label names.
But I have set spaces in type and according to the file content. If I turn according to the file content off and set tabs only, I get only tabs. I really don't understand those preferences.
2010/3/3 Joerg Desch jd.vvd@web.de:
On Wed, 3 Mar 2010 12:32:51 +0100 Filip Gruszczyński gruszczy@gmail.com wrote:
It seems, that geany does something wrong with indentation. I set indentation to spaces in preferences, but it uses tabs sometimes. When there is only one tab, I get spaces. When I put two tabs, I get tabs.
That is the correct behavior. One tab replaces 8 spaces.
If you prefer spaces, go to the settings of the editor, select the indent page and select the type "spaces". Note that I use a german version, so I don't know the correct label names.
-- Email: Joerg Desch <jd DOT vvd AT web DOT de> _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Wed, 3 Mar 2010 14:27:10 +0100, Filip wrote:
But I have set spaces in type and according to the file content. If I turn according to the file content off and set tabs only, I get only tabs. I really don't understand those preferences.
Did you maybe enable the 'Detect from file' preference? Just to get sure, check what Geany thinks to use as indentation type, it's printed in the status bar behind the INS value.
Regards, Enrico
Yes, I have enabled Detect from file. But it detects tabs + spaces even when the file is empty and spaces only setting is set.
2010/3/3 Enrico Tröger enrico.troeger@uvena.de:
On Wed, 3 Mar 2010 14:27:10 +0100, Filip wrote:
But I have set spaces in type and according to the file content. If I turn according to the file content off and set tabs only, I get only tabs. I really don't understand those preferences.
Did you maybe enable the 'Detect from file' preference? Just to get sure, check what Geany thinks to use as indentation type, it's printed in the status bar behind the INS value.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
2010/3/4 Filip Gruszczyński gruszczy@gmail.com
Yes, I have enabled Detect from file. But it detects tabs + spaces even when the file is empty and spaces only setting is set.
Selecting "detect from file" means that the detected indentation overrides the setting. So unset it to enforce your setting.
An empty file can't actually detect anything but the default happens to be both.
Cheers Lex
2010/3/3 Enrico Tröger enrico.troeger@uvena.de:
On Wed, 3 Mar 2010 14:27:10 +0100, Filip wrote:
But I have set spaces in type and according to the file content. If I turn according to the file content off and set tabs only, I get only tabs. I really don't understand those preferences.
Did you maybe enable the 'Detect from file' preference? Just to get sure, check what Geany thinks to use as indentation type, it's printed in the status bar behind the INS value.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
-- Filip Gruszczyński _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany