Domanda

Ogni volta che sono il debug di un programma Java, devo avere il codice rientrato! E io odio il codice uno per uno manualmente trattino (utilizzando Tab).

Mi sarebbe davvero come un leggero Java IDE che indenta automaticamente tutto il codice in un semplice pressione di un tasto.

Un esempio di buona è "pronto a programma" Java IDE, ma l'aspetto negativo di questo IDE è che non è compatibile con JDK 1.5 +

Ci sono dei suggerimenti su come un Java IDE?

È stato utile?

Soluzione

IntellJ IDEA e Eclipse mi vengono in mente.

Non direi Eclipse leggerezza però.

Altri suggerimenti

Io uso Notepad ++ per il rientro veloce. Si chiama "++ Codice reindent C" ma funziona altrettanto bene per il codice Java.

http://notepad-plus-plus.org/

You can use the Factor option in Netbeans to properly format/indent your Java code. It's even got a handy shortcut: Alt+Shift+F

Edit: Oh yeah, Netbeans is great, but not really lightweight...

In the good old days, I used to use emacs as an "IDE" for Java development. It has excellent support for code indentation and formatting.

Coding Java in NPP must be similar experience to shaving yourself with blunt stone and using vodka instead of aftershave. It may look manly, but there's no reason. It's XXI century. Intellij will run on any reasonable PC, same with NetBeans and Eclipse.

Those features are no-brainer for me, along with about hundred of others. Build in debugger with ability to execute any piece of code, or checking variable state are also necessary. I know that most of debugger may be replaced with good suite of unit tests, however sometimes you just need to check something live.

And as we are on topic of unit tests, even that is possible to simplify with good IDE. Intellij allows you to navigate between class and test class, run single test, whole class or suite with simple key stroke, generate test method from template, etc.

If you live from writing code, then don't do it to yourself and just buy a license, or use open version. Life is to short to work on NPP with plugins.

Disclaimer: Vim is okay, if you have to reconfigure something on live system in order to save a lot of $$$, c's it'll take time to deploy new version. In any other case, using advanced notepad is just stupid. Why? For same reason as coding not on decent hardware but on OLPC.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top