



Hi,
Perhaps I'm missing it, but is there a way to do per-project tab expansion?
I often work on different codebases with different coding standards (work code, php.net code, personal code, etc.), and we have different policies for tab expansion.
Is there a way to set this on a per-project basis?
Furthermore, is there anything useful in .kpf files? It would be nice if they could overlay (to use a mozilla word) settings. Would be pretty sweet if they had an event that would fire code on use (we could set tab expansion programmatically via the .kpf, perhaps).
S
This is something we've considered doing either per language or perhaps more usefully per-project. Note that currently Komodo tried to guess the tab settings of a file when you open it by default, this is set at
Preferences / Editor / Indentation / 'Allow file contents to override Tab settings'
So for example when I open a Drupal file, Komodo will detect 2-space indents and follow suit.
--
JeffG | Komodo IDE 4.0 | MacBook Pro OS X Intel / Ubuntu 6.10 i386
Sure. I like that feature.
The inconvenience is that I have Komodo set to insert tabs by default, but when I create new files in other projects, I want the default to be 4 spaces (sometimes).
I like that I can change it per-file, but per-project would be best for me. Per-language doesn't help me—almost all of my different needs are still PHP-centered.
I still think the event hook on project switch is a good idea (-:
S
I managed to solve this issue with a nice toolbox macro, Komode:
http://support.activestate.com/forum-topic/komode-modeline-support-f
S