Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Wednesday, August 22, 2012

Using code templates in PyDev

In Aptana Studio (i think in Eclipse with PyDev it's the same) go to Window > Preferences > PyDev > Editor > Templates.

Now, in the code type a template name and press Ctrl + Space. You will see your template in a drop down list. Select with mouse or keyboard and you will have the whole template inserted:


Tuesday, March 6, 2012

Mono-space font for Eclipse and Python

Was looking for the best font for Eclipse and Python. I use size 10, and these are my favorites: 
Eclipse with Droid Sans Mono font

Eclipse with Liberation Mono font

I now always use Liberation Mono font as the default monospace font in Ubuntu.  I see several advantages in it over Droid Sans Mono font:
  1. Digit '0' is distinguishable  from letter 'O'
  2. I like 'g' letter better
  3. Liberation Mono has Bold type face, and you can see what this mean in console:
Notice bold font (Liberation Mono)
Notice bold font (Liberation Mono) in Emacs
No bold font (Droid Sans Mono) in Emacs