Posts Tagged ‘snippets’

Komodo – the way to go?

Monday, November 1st, 2010

From Active State, who also creates Komodo IDEIs Komodo the way to go? Well, I am convinced. I have been working a bit with TextMate and Coda on the Mac, and e-texteditor on Windows. I like features in all of these. But I would like a crossplatform editor (since I work an the three major platforms), is fast but has enough features to work with. Komodo Edit by Active State has it all.

It has

  • Project management
  • Good Find/Replace
  • Snippets (which you can set to Key Bindings), Macros, Commands
  • Plugin friendly, and available plugins (like a source tree and database explorer)
  • Good code completion
  • It is fast enought
  • Works on Windows, OS X, Linux
  • Can Import/Export snippets between platform

Check the website at Active State for more features. One thing I found is that I need to change the default setting to get it the way I like (for example Tab indent and not Spaces). Here is some of the steps I use:

Change indention

In the Preferences / Editor / Indention, change Prefer tabs over spaces, and change “Number of spaces…” and “Width of each tab…” to 8. I discovered indention works better when both is set to the same value (which BTW is the same with Netbeans).

Fix so that Ctrl + Shift + W closes all files

Open Preferences / Editor / Key Bindings. In the input field “Commands” write “Select end” and select “Editor: Select to end of word”. Click “Clear”. Now write “Close all”  in the input field “Commands”. Select “Editor: Close all buffers”. Select the input field “New key bindings” and hold down Ctrl + Shift + W.  Click Ok, now your done! :)

Install Add-Ons

Extension and Plugins are the same format as in Firefox and Thunderbird, .xpi. There is an Extension  that is called NST and gives you a sourcetree for the file you are working in.

Snippets in Quanta Plus

Friday, January 22nd, 2010

The latest months I’ve been working as an employee with Quanta on Xubuntu, and I love the way snippets is handled in Quanta Plus. They are stored as simple .txt-files, which are created when you drag selected code into the sidebar. The snippets are called “Templates”, which might be a little confusing. They also have a scope – Global, Local or Project. I mainly use Global, so I have all in the same place and can reach them. I then share the with Dropbox, making the snippets available in my OS X and Windows too.