Other 2.0 suggestions

- Surround With Live Template. Basically I want a 'selection' to play a
part in the expanded template. Really, what I want is more like "Insert
Live Template" that acts on selected text. It might not always 'surround'
the selected text, but might transform it or replace it in some way, doing
substitutions in the template based on the selected text. For example, I
have a code pattern I use all over the place where the only thing that
changes is the Class name. I'd like to be able to type the class name, and
then invoke the template, which would then expand the selected template
using that class name.

- Better editing of Live Templates: It'd be nice to have a list of macros
that can be inserted (so you always know what's available without having to
look things up in Help)... maybe a drop down list with all the macro names,
and an 'insert macro' button to insert the currently selected macro at the
cursor location. At that point, you could edit the variable properties in
the bottom window.

- You mentioned that "Go To Symbol" would be difficult or inefficient to do
in VS2003 ... could you have just a "Go To Method" maybe? Or is that no
less difficult or inefficient? I find myself missing the Go To Symbol
feature a lot, and nine times out of ten, it's because I want to go to a
method name (and would like to know which objects have that method, or I
forget which of several objects implement that method).



2 comments
Comment actions Permalink

Never mind on the second bulleted item. Instead of that (I don't know where
my head was).... what is needed is some additional Macros.

For example, I'd like a "Suggest a type derived from (type)" macro. This
would basically be a code completion box where the user could type a few
characters and any type derived from the specified type whose name matched
would be inserted.

An example might be for a set of classes with a common base class, where
there is a static constructor. You should be able to write a live template
like this:

$TYPE$ instance = $TYPE$.New$TYPE$();$END$

The first $TYPE$ would be editable, and the macro would be "Suggest a Type
derived from Foo". When the user invoked the live template, they'd be
prompted with a drop-down list of all classes derived from type Foo that
would function just like code completion. When an actual type was selected,
it would replace the others.

Does that make sense? I can't seem to figure out a way to do this right
now. I only see the ability to guess or suggest types for dictionary keys
and values... I need a more general 'type' macro.


"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:d1aj0g$ce6$1@is.intellij.net...
>- Surround With Live Template. Basically I want a 'selection' to play a
>part in the expanded template. Really, what I want is more like "Insert
>Live Template" that acts on selected text. It might not always 'surround'
>the selected text, but might transform it or replace it in some way, doing
>substitutions in the template based on the selected text. For example, I
>have a code pattern I use all over the place where the only thing that
>changes is the Class name. I'd like to be able to type the class name, and
>then invoke the template, which would then expand the selected template
>using that class name.
>

- Better editing of Live Templates: It'd be nice to have a list of macros
that can be inserted (so you always know what's available without having
to look things up in Help)... maybe a drop down list with all the macro
names, and an 'insert macro' button to insert the currently selected macro
at the cursor location. At that point, you could edit the variable
properties in the bottom window.

>

- You mentioned that "Go To Symbol" would be difficult or inefficient to
do in VS2003 ... could you have just a "Go To Method" maybe? Or is that
no less difficult or inefficient? I find myself missing the Go To Symbol
feature a lot, and nine times out of ten, it's because I want to go to a
method name (and would like to know which objects have that method, or I
forget which of several objects implement that method).

>
>



0
Comment actions Permalink

Hello Paul,

It would be of no help for efficiency of "Go To Symbbol" to restrict ourselves
to methods only,
as in 1.5 we don't cache any information about type members at all. This
feature will be
implemented in ReSharper 2.0.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

- You mentioned that "Go To Symbol" would be difficult or inefficient
to do in VS2003 ... could you have just a "Go To Method" maybe? Or is
that no less difficult or inefficient? I find myself missing the Go
To Symbol feature a lot, and nine times out of ten, it's because I
want to go to a method name (and would like to know which objects have
that method, or I forget which of several objects implement that
method).




0

Please sign in to leave a comment.