This is a tool that I’ve been using for quite a long while, just recently I fixed a small bug in the regexp and I thought it was time to share it.
For those of you using the official IDE, there’s no real solution to this “problem”. When you’re working on something small, it’s not a big deal to define a couple of declares here and there… However, on bigger code this becomes a real issue!. So why waste the time switching between IDEs or doing it by hand?…
Grab it and let me know how it runs! (nasty ugly source included).
The tool is very simple to install, I recommend you unzip directly into your PB directory and configure it as follows:
That’s it. You’re ready to declar’em!.
Cheers.
thanks that saves a lot of time, but it seems to fail on something like this:
something with brackets in the parameters; so i use this regex instead
it tries to match until the end of the line, but has a side-effect of including that into the match; probably should ‘chomp’ that out
You’re right!, this could work instead: