Issue
I have to work on several VB6 legacy projects and despite some good VB6 plugins (CodeSMART for example) I hate the IDE more and more, especially now where I have the opportunity to work with Java/Netbeans on a new project. Unfortunatly it will stay that way at least the next few years.
So I'm asking myself: Can the Netbeans IDE be extended via plugins to support VB6 projects?
This is what I dream of:
- Better code navigation (Ctrl+Click for example)
- Better code highlighting
- Code folding
- Simple refactoring
- Organizing the source files in a hierarchy
- My own VB6 specific warnings ("Missing
option explicit
for example") - Code generators (like in Java for getters and setters)
- Integrated debugging (But I assume this is virtually impossible)
- Auto-formatting of code
Can it be done? Has someone experience with Netbeans and a custom language? What's the best way to start?
EDIT: I want to do this myself as I'm aware that this is a highly specialized feature request :)
Solution
I did a quick search to see if there is an available plugin to support Visual Basic on Netbeans, but was not able to find any.
As you've mentioned that you are willing to write VB support for Netbeans, you may want to take a look at Schliemann - Easy Integration of Scripting Languages in NetBeans IDE 6.0. This article provides information on how langauge support works in Netbeans 6 along with a how-to on adding new languages.
You may also want to check out the General Scripting Framework, which is used to provide support for Ruby, HTML, CSS and JavaScript. The advantage over Project Schliemann is that it will allow compilation of new languages as well, however, the downside is that you will have to provide the lexer and parser for the new language to support.
Here are some additional some resources which may come handy on your quest:
- Contributing Modules - First, check to be sure that there are no other plugins that will suite your needs.
- NetBeans Plugin Quick Start - Introduction to adding features to the IDE.
- Generic Languages Framework (Project Schliemann) - This information may be outdated as it references the current version of Netbeans as a "future" version.
- languages.netbeans.org - This site is listed as the official page for Project Schliemann.
Good luck!
Answered By - coobird
Answer Checked By - Clifford M. (JavaFixing Volunteer)