Iām using Komodo IDE v 9.3.2. Even though my global preferences and file preferences specify an indentation of 2 spaces and to use spaces rather than tabs, the editor still insists on adding tabs. The only way I can get tab-free indentation is to invoke the āuntabifyā menu command.
It was bad enough that the per-language indentation preferences were not saved (at least for XML), that bug has been present for too long already. Those preferences are now, in v9.3.2, ignored altogether.
A significant amount of work has gone into fixing these bugs relating to indentation preferences. Could you clarify exactly what bug reports youāre referring to, re: [quote=ācsid_tom, post:1, topic:2664ā]
It was bad enough that the per-language indentation preferences were not saved
[/quote]
Could you try the latest nightly of Komodo 10 as well and see if the issues are resolved for you? FYI, the latest nightly will be available at 12pm PST, ie. in about 19 minutes. http://downloads.activestate.com/Komodo/nightly/komodoide/
Iām using Komodo Edit 9.3.2 on OS X 10.9.5
I donāt have the problem mentioned above with tabs being used - Komodo correctly converts tabs to spaces for me.
But I do see a problem once in a while with indentation where the auto-indent-upon-newline seems to insert about 20 spaces instead of the 4 spaces that I have configured.
In previous versions, this kind of problem also occurred once in a while, but in those previous versions it seemed that the problem was that the per-document settings had somehow gotten changed (without me doing it) and the fix was to specify the 4 spaces config in the per-document settings.
But currently, when this problem occurs, the per-document settings donāt show any problem. I havenāt found any fix for when this problem occurs in the current version of Komodo Edit - I have to manually delete the indent and insert the desired number of spaces manually. The problem seems to go away on its own sometime later - maybe after Komodo Edit has been restarted?
This problem occurs only once in while (maybe once every 3 weeks) so it isnāt useful to try the overnight build to see if it exists there.
I donāt have the tickets at-hand at the moment, Iāll try and find them though.
Iām running Komodo Pro v9.3.2 on Windows Pro v7.
The issue Iāve seen for awhile is that I want 4-space indents for everything except .xml files, and 2-space indents for those. As I recall, for a time, I could get the special 2-space indent to āstickā during the editor session where I provided it. It would, however, disappear after closing the IDE. When I reopened the IDE, .xml files would again be set to a 4-space indent.
More recently, perhaps in the past year or so (?), the per-space indent setting for .xml files has had no observable effect at all.
This is readily demonstrated on my IDE:
Open global preferences, navigate to āeditor->indentationā, set the āPer-Language Indentation Settingsā drop-down to āXMLā, enter ā2ā and ā2ā for āNumber of spaces per indentā and āWidth of each tab characterā, and make sure āPrefer tab characters over spacesā is cleared. Click āOKā to save changes.
From the āFileā menu, select āNew->XML.xmlā.
In the resulting file, select āEdit->Current File Preferencesā¦ā
The resulting dialog contains ā4ā and ā4ā as the values for the two fields, rather than the correct values of ā2ā and ā2ā.
The new (with v 9.3.2) behavior is that, even though the āPrefer tab characters over spacesā setting is cleared (not checked), typing the tab character in the new file inserts a literal tab rather than the requisite number of spaces.
This unwanted behavior is the same for existing .xml files.
Is it 8 as apposed to 20? That issue has been resolved in Komodo 10. We discovered that in some of the older Komodo code it was setting users file level preferences for them without the user knowing. Weāre trying to remove that code and it has unfortunately results in unforeseen bugs, most of which are resolved. One of those changes was introduce in 9.3.2 so this makes sense for your case, @hayne . Iād suggest trying Komodo 10.
@csid_tom, Can you also try Komodo 10? Iām pretty sure your issue is resolved as well.
Did you mean to mark your last comment as āSolutionā? I donāt see a solution in [quote=āDefman, post:6, topic:2664ā]
This still happens sometimes in 88986
[/quote]
For what itās worth, Komodo 9.3.3 should have fixed some indentation problems introduced in 9.3.2. If Komodo 10 is ātoo alphaā for you, you may want to try updating to 9.3.3. Iām not entirely sure your problem will be fixed though.
Where can I get the 9.3.3 version? Itās not on the website and my IDE says there are no updates.
I stumbled on this, cause I just got (again) angry cause the per language settings are not working as expected.
Just for info, my settings are Indent 4 mainly for Python, but i want only 2 for JS, HTML, HTML5 whateverā¦it only gives me 4
And Iām on Komodo IDE 9.3.2 on Win7