Wednesday Aug 29, 2007
Wednesday Aug 29, 2007
I learned a neat trick in the dev@ruby.netbeans.org mailing list this week, one that I wish I had discovered long ago -- how to open a file in the Netbeans editing area from the command line, even if the file is not in an opened project.
Make sure that the NetBeans bin directory is in your path. Then use the following command to open the file in the NetBeans editing area.
netbeans --open file
Even better, make an alias:
alias nb='netbeans --open '
Then you can simply type nb file. The command will start up the NetBeans IDE if necessary. If the IDE is already open, the command simply opens the file and pops it to the front of the editing area.
If you are using Windows, you can also do the following to open a file in the IDE.
For more information, see wiki.netbeans.org/wiki/view/FaqCliOpen
Is this cool ?
+1
Posted by anjan bacchu on August 29, 2007 at 01:03 PM PDT #