Posts Tagged ‘tabs’

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.

How to make Netbeans use tabs for indention

Monday, February 1st, 2010

I’m really starting to like it, but got stuck on how to make Netbeans use tabs for indention. Deselecting the option “Extend tabs to spaces” didn’t work for me, I still got those damn spaces (I hate indention by spaces).

I found the solution though, go to your “Options“-panel, choose the “Editor” page, select “Formatting” and set “Tab size” and “Number of spaces to indent” to the same size.

Update: More PHP’ers falling for Netbeans.