Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: "Adam Markowitz [Borland]" <amarkowitz@xxxxxxxxxxx>
- Date: Fri, 22 Sep 2006 23:23:34 -0700
Jon,
"Jon Shemitz" <jon@xxxxxxxxxxxxxxxxx> wrote in message
news:45142669.2CC82E3C@xxxxxxxxxxxxxxxxxxxx
"Adam Markowitz [Borland]" wrote:
I'm not sure what you mean by saving a few clicks - BDS now has
something similar?
Try hitting CTRL+SHIFT+SPACE inside the class declaration and selecting
the
methods of IDisposable. This should put in the declarations. Then press
CTRL+SHIFT+C to generate the stubs.
Ctrl+Shift+Space doesn't do it for me, but Ctrl+Space does. I see what
you mean about "a few clicks" - I get a menu of every method in every
interface (in red) and every method I could override.
Yes. That's funny that I said CTRL+SHIFT+SPACE instead of CTRL+SPACE. I
probably use those keystrokes 10,000 times a day and I still messed that up
when describing what to do :)
I'm sorry, but this is just in no way comparable to what VS does for
you. When you select a menu entry, it creates a #region for the
interface methods, and it implements properties as properties, not
get_IsReadOnly methods and the like. All in one click, and the methods
are stubbed in to raise a not-implemented exception.
This mechanism has been around since maybe Delphi 7 so it may be a little
less intuitive. Most everything can be made to be a little more user
friendly :)
And if you try to implement, say, IList in BDS using Ctrl+Space, it
(not only loses the properties, it also) generates invalid prototypes,
like
procedure CopyTo(array: Array; index: Integer);
That's a problem. Please QC.
that won't compile and that choke Ctrl+Shift+C.
VS does give you a UI to set key
bindings for every available action.
"EditorContextMenus.CodeWindow.ImplementInterface.ImplementInterface"
and
"EditorContextMenus.CodeWindow.ImplementInterface.ImplementInterfaceExplicitly"
;-) are the ones; as a test, I just added Shift+Alt+I for the standard
(implicit) bind-by-public-name, and it works just fine.
Yes, this is true. But do they have a binding for smart tag to drop down
or
must a mouse be used?
I don't know ... you could Google, I guess. ;-)
I think it's pretty nifty the way VS 2005's code completion includes
keywords like "public" and "class", "void", "virtual" and "override."
Those are essentially just code templates. Both IDEs are capable of
this.
Is it? It's context sensitive ....
The BDS code templates are also context sensitive. I'm not sure how
different the granularity of the contexts are between the two IDE's, but
yes, BDS has context sensitive live templates.
I think it's seriously wonderful that you can type, say, "protected
override" and code completion will show all the methods you can
override, and will fill in the prototypes for you. It does save
serious time when you're overriding, say, a Form method like
OnPaintBackground.
Same as Delphi for the interface stuff above. CTRL+SHIFT+SPACE in the
class
declaration should give you a list of interface methods to implement as
well
as methods you are able to override (virtuals, dynamics, etc). However I
do
agree that this support is lacking for C# in BDS at this time.
Yes, I agree, here: slightly different interface, but 100% the same
functionality.
-Adam
.
- Follow-Ups:
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Barry Kelly
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- References:
- Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Serge Dosyukov \(Dragon Soft\)
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Jon Shemitz
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Adam Markowitz [Borland]
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Jon Shemitz
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Adam Markowitz [Borland]
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Jon Shemitz
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Adam Markowitz [Borland]
- Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- From: Jon Shemitz
- Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- Prev by Date: Re: Web Development Question
- Next by Date: Re: Smart people...
- Previous by thread: Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- Next by thread: Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- Index(es):
Relevant Pages
|