class-completion

How can I make Class Completion include parentheses even for empty parameter lists?

北慕城南 提交于 2019-12-10 16:14:36
问题 I'm back in Delphi 2010 again after having worked several years in Visual Studio. I would like to make the IDE behave in a differnet way: I'd like the IDE's auto-completion to respect the parenthesis when I declare a function/procedure. Example: if I declare procedure x(); Id like the auto-completion to create procedure myobj.x(); and NOT procedure myobject.x; as it does. Yes, it doesn't really matter but I'm pedantic. Any ideas? 回答1: Delphi doesn't require the parentheses when there are no

Delphi-IDE: how to change the way class-completion works?

别等时光非礼了梦想. 提交于 2019-12-04 09:45:19
问题 Class completion in Delphi is a big time-saver, but I haven't found a way to customize it. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default: function TAaa.getAaa(); procedure TAaa.setAaa(); procedure TAaa.Baa(); function TAaa.getCow(); procedure TAaa.setCow();

In what order does Class Completion put its results?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:51:41
问题 Example: I create a new unit, declare a class with several methods like constructor, destructor, method1, method2, method3 in that order and then hit Ctrl-Shift-C. The IDE creates all the method bodies automatically, but the order is mixed up and not as it was declared in the interface section. Now, this is not a problem, but is there a reason for it. It seems to be more difficult to mix that up than to just do it in the order of the declaration. Or is there some rule to it that makes sense

Delphi-IDE: how to change the way class-completion works?

ε祈祈猫儿з 提交于 2019-12-03 03:18:32
Class completion in Delphi is a big time-saver, but I haven't found a way to customize it. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default: function TAaa.getAaa(); procedure TAaa.setAaa(); procedure TAaa.Baa(); function TAaa.getCow(); procedure TAaa.setCow(); procedure TBbb.getAaa() I want the implementation section to be in the same order as the interface; I