Komodo Edit appears to be a stripped down version of Active States more full featured Komodo IDE. Even though it is stripped down, it still has a some nice features.
While the Komodo Edit doesn't have all the built in features of the full-fledged IDE, the inclusion of the extensible Toolbox allows you to approximate some tools and integration that turns out to be quite handy.
Launching a Python Shell
The Komodo IDE has a nice integrated shell for python that makes trying out code quite easy. This is one of the features that was left out of Komodo Edit, but we can make launching a shell a little easier by creating a Toolbox entry that you can then bind to a key combination and launch from within the editor.
To get the entry:
- Launch Komodo Edit
- Click the Toolbox drop down menu
- Choose the Add menu item
- Then, click the New Command item
- In the Add Command window, type Python Shell in the first feild
- Then type, gnome-terminal -x python (or your terminal emulator of choice with the appropriate execute switch)
- The choose, No Console (GUI Application) from the Run In: field
- Next, click the Key Binding tab at the top and assign a keyboard combo that you can use to easily launch a python shell.
Running a Python File
Similarly you can create a Run Command to use python to execute the current file that you are working with.
To get the entry:
- Launch Komodo Edit
- Click the Toolbox drop down menu
- Choose the Add menu item
- Then, click the New Command item
- In the Add Command window, type Run Python File in the first feild
- Then type, %(python) %F
- The choose, Command Output Tab from the Run In: field
- Next, click the Key Binding tab at the top and assign a keyboard combo that you can use to easily launch a python shell.
I will post any more tricks in Komodo Edit as I come across them. If you have any tips or tricks, please post them to the comments.
CC photo credit: Fred Hsu
1 comment:
Thanks for this - helped me out much faster than I expected!
P.S. Your profile is eerily similar to what mine might be ('cept I am not at Linux Admin level yet...)
Post a Comment