Re: indentation (code formatting)
Todd Whiteman <[email protected]> Wed, 07 Aug 2013 16:02:35 -0700
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
On 13-08-05 03:57 AM, Dave Cottlehuber wrote: > I find vi source code re-indentation very handy (like gg=G for > redoing the whole file). Is there any way to access this from within > komodo? Dave logged an enhancement request on this here: http://bugs.activestate.com/show_bug.cgi?id=99907 Re-summarizing comments here: I doubt we'll be adding vim parsing to the Komodo core code base (it's complicated enough already ;) However, the Code Formatting tools (in Komodo IDE, or macros in Komodo Edit) do allow for launching an external command to perform code formatting. Personally, I'd create a bash wrapper script for your vim command, which saves the content to a temporary file, performs the formatting and then deletes the temporary file, sending the result back on stdout. References: http://community.activestate.com/komodo-50-features#code_formatters http://community.activestate.com/faq/setting-new-komodo-ide-formatter Cheers, Todd _______________________________________________ Komodo-discuss mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss