Reputation: 305
I use Komodo Edit 8.5 and I have problems with tabs. When I press tab key it jumps 8 characters instead of 4 which I use in preferences (Edit – Preferences - Indentation).
The "number of spaces per indent" is 4 and "Width of each tab character" is 4 too, so I don't understand where is the problem.
Everything appear fine (one tab is equal to 4 characters), but when I hit the tab key it jumps 8 characters. It seems it completely ignores my settings.
Do you have any solution?
Upvotes: 8
Views: 3184
Reputation: 791
Komodo has a bug in the setting "Allow file contents to override tab settings". Here (in #1) is how to fix it such that you will no longer need to change the per-file settings:
For currently open files, either close them all and re-open them, or do the following:
All new files / or newly opened files will now open with the correct indent settings from now on due to change in #1.
-- More Info --
Upvotes: 6
Reputation: 868
You might also need to apply your changes in Code > Current File Settings > Indentation.
Upvotes: 6
Reputation: 24617
Uncheck the following option in the Editor=>Preferences=>Indentation menu:
Prefer Tab Characters over spaces
Komodo displays Tab characters wherever possible, according to the values specified in the Number of spaces per indent and the Width of each Tab character fields. When the 'Tab' key is pressed, Komodo inserts indentation up to the next indent width. If the new indentation is a multiple of the Tab width, Komodo inserts a Tab character. Example: With a Tab width of 8 and an indent width of 4, the first indent is 4 spaces, the second indent is a Tab character, and the third indent is a Tab character plus 4 spaces.
References
Upvotes: 0