lunes, 6 de agosto de 2007

Programando Python con Eclipse

He instalado PyDev (http://pydev.sourceforge.net/) en Eclipse 3.3 para desarrollar una aplicación web (basada en CherryPy) sobre Ubuntu 7.04, y funciona de maravillas! Autocompletar (code completion) es de muchísima ayuda, y puede utilizarse con Python o Jython (yo lo estoy usando con Python). Al instalarlo detecta todas las librerías instaladas, y es muy fácil agregarle otras nuevas (por ejemplo, CherryPy y Kid, para la aplicación web).

All Features (release 1.3.8):

Editor:

* Package Explorer showing outline for python modules
* Mylar integration (separate feature: org.python.pydev.mylar.feature)
* Jython and Python support!
* Support for scripting Pydev with Jython
* Nice PYTHONPATH configuration!
* Project and module creation wizards
* Ctrl+Shift+O: Organizes imports or sorts selection alphabetically
* Ctrl+Shift+F: Autoformat your code (preferences can be set)
* Python 2.4 syntax supported
* Python 2.5 syntax supported
* PyDev builders can be disabled
* Syntax highlighting
* Hovering in errors shows descriptions
* Matching brackets highlighted.
* Parser errors marked in the task list
* Outline view with imports/functions/classes
* Tabs or spaces preference
* Smart indentation (indent and dedent)
* Navigation: keyboard shortcuts to previous or next function. Default: (Ctrl+Shift+Up and Ctrl+Shift+Down)
* Comment and uncomment commands (on the popup menu) and keybindings. Default: (Ctrl+3 and Ctrl+Shift+3)
* hyperlinks over functions//import statements
* Code folding
* Refactoring with bicycle repair man.
* Code Completion (Ctrl+Space)
* Templates Completion (Ctrl+Space Too)
* Go to definition with F3 (powered by bicycle repair man)
* Content Assistant (Ctrl+1)
* Code Coverage
* Pylint
* TODO tasks
* Background and current line color chooser.

Debugger

* Python and Jython support
* Watch
* Breakpoints
* Step in/out/over
* Multiple threads
* Variable display
* File hyperlinks in the console output (you can click on stack traces)

No hay comentarios: