[WISH] Auto END SUB

madSac

Active Member
Licensed User
Longtime User
I think one thing is missing.Whenever we create a sub and END Sub should automatically be added in next line.
 

Cableguy

Expert
Licensed User
Longtime User
If you create the sub from an existing object....writing "sub" then hitting the Tab key, a list of object popsout...selected the type of object you are subbing... and the a list of event comes....
all thats left to do is to replace the objects name in the subs placeholder...
And guess what... the end sub is alreay there!!!
Also if you create the events from the designer members... the subs are complete, lacking only the action code

But... if you create a custom sub... no end sub is automated...
 
Last edited:

madSac

Active Member
Licensed User
Longtime User
If you create the sub from an existing object....writing "sub" then hitting the Tab key, a list of object popsout...selected the type of object you are subbing... and the a list of event comes....
all thats left to do is to replace the objects name in the subs placeholder...
And guess what... the end sub is alreay there!!!
Also if you create the events from the designer members... the subs are complete, lacking only the action code

But... if you create a custom sub... no end sub is automated...

i know ......but i want that custom sub should also automatically add end sub for better user experience.May be this is a useless idea.
 

JonPM

Well-Known Member
Licensed User
Longtime User
i know ......but i want that custom sub should also automatically add end sub for better user experience.May be this is a useless idea.

No, I think its a good idea. Its not one of those major improvements or extremely necessary, but a nice little touch.
 

madSac

Active Member
Licensed User
Longtime User
another thing is that, can you colour logs or say provide different colours to log type like red to warning,white to normal and Please provide an option to unlock list mode in logs to textview as reading a long line is difficult.
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
Any improvement is always a good idea. At some point there are always limitations though. The big thing with this is for times you want to turn existing code into a sub or something and type your Sub then have to move your code.

Might be nice to have a right click option just called Make Sub (Other Quick Text entries for IF or FOR/FOREACH blocks and such would be good too). With nothing selected it would just insert an empty Sub block with the blue/green box to type the Sub name in like events do. With text highlighted it would surround it with a Sub Block and have the cursor in the blue/green box again for the Sub name.

The other big thing would be indenting. Not only for the above, but any time you put text somewhere like when pasting for it to indent it the level it needs for that block and not keep the old indent.

I'm all for some automatic dropdowns to without needing the ctrl+spc stuff. To give us a quick list of variables/subs. I wouldn't go overboard like Eclipse though- Sometimes it drives me nuts when it tries to auto correct things like I type < for a compare and it finishes it with <> or sometimes it automatically adds a ) and other times it doesn't.
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
another thing is that, can you colour logs or say provide different colours to log type like red to warning,white to normal and Please provide an option to unlock list mode in logs to textview as reading a long line is difficult.

Probably needs its own thread, but I agree that color coding for different log types would be a plus. Having to resize that thing to half my screen since no wrapping is annoying too. I had also suggested in the past for a quick way to disconnect other than pulling the plug when logs aren't needed anymore.
 

madSac

Active Member
Licensed User
Longtime User
Any improvement is always a good idea. At some point there are always limitations though. The big thing with this is for times you want to turn existing code into a sub or something and type your Sub then have to move your code.

Might be nice to have a right click option just called Make Sub (Other Quick Text entries for IF or FOR/FOREACH blocks and such would be good too). With nothing selected it would just insert an empty Sub block with the blue/green box to type the Sub name in like events do. With text highlighted it would surround it with a Sub Block and have the cursor in the blue/green box again for the Sub name.

The other big thing would be indenting. Not only for the above, but any time you put text somewhere like when pasting for it to indent it the level it needs for that block and not keep the old indent.

I'm all for some automatic dropdowns to without needing the ctrl+spc stuff. To give us a quick list of variables/subs. I wouldn't go overboard like Eclipse though- Sometimes it drives me nuts when it tries to auto correct things like I type < for a compare and it finishes it with <> or sometimes it automatically adds a ) and other times it doesn't.
I totally agree with you...you pointed out some more ideas...which can make b4a more better in user experience and easy to use.
 

madSac

Active Member
Licensed User
Longtime User
Should i start a new thread ?

Probably needs its own thread, but I agree that color coding for different log types would be a plus. Having to resize that thing to half my screen since no wrapping is annoying too. I had also suggested in the past for a quick way to disconnect other than pulling the plug when logs aren't needed anymore.
I think you are also bugged up with copying and then manipulating logs.
 
Top