Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 20048, Shortcut for autocomplete variable declaration

by Vassilis Kyrios Email: Anonymous

As user presses Shift + Ctrl + Space for completing the class, why can't there be some very useful keyboard shortcut to insert the variable declaration?
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 7.0 7 downloads
Copyright: No significant restrictions

Size: 0 bytes
Updated on Thu, 15 May 2003 15:01:44 GMT
Originally uploaded on Thu, 15 May 2003 14:54:37 GMT
I like that due to pascal's syntax, you can find all the variables declared in one place, just before the begin. There have been numerous times though when this has driven me nuts to write over and over again when I just simply wanted to add an i iterator variable and had to go back to the top of the procedure. I lose focus.

Why can't there be an easy shortcut so that when you press it, the editor inserts the appropriate lines of declaration for the local variable you want created? For example,

procedure AndAnotherOne;
for i := 1 to 2 do // <- Here, after pressing enter, the editor could ask you, could just flash, or it could be automatically triggerred, if you want the variable i to be automatically declared. It knows that i should be of type integer ( 1 to 2 is of type int and integer is the fastest type for the 32bit PC's command set ) so if you pressed ok, or you had it to automatically declare the variables for you, it would type var i: integer; just before begin.


This could really spead things up, and would really help the programmer a great deal.

best regards to all developers,

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04