Issues with generics + some requests
Some issues connected with generics:
1. DictionaryEnumerator enumerator =
this._dictionary.GetEnumerator(); R# marks this statement as error with the
following message: "Incorrect number of parameters in reference to struct
'Dictionary.Enumerator.
2. Then, if I write:
List list = new List]]>();
while(enumerator.MoveNext())
{
list.Add(enumerator.Current.Value); R# marks this line as error: "Argument
type "TValue" is not assignable to parameter type "SomeObject"
}
3. The autopopup function is not usable in this moment. It has very low
performance, and I'm able to write the whole word before autopopup appears.
And few requests :)
1. It would be very useful if Go To Type function could search types using
substrings. If I have for example a lot of types which names starts with
"SomeTypeNamePrefix" I have to always type this prefix to find exact type.
The same with Go To File function.
3. It would also be very useful if I could specify list of extensions, or
patterns which Go To File function should omit. For example, if I search a
form called Form1, R# allways shows Form1.cs and Form1.Designer.cs. Then I
could specify, that I don't want to see files which meets *.Designer.cs
pattern.
Greetings from Poland, great job so far :D
Please sign in to leave a comment.
Hello Piotr,
1) Actually Go To Type (and File) accepts wildcards. So you could just
type substring in order to get all the types whose names contain the specified
'substring'.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Great, thanks!
Please could you post all the bugs into our bug-tracker?
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Piotr Zbyszyñski" <styko@atos.wmid.amu.edu.pl> wrote in message
news:dnp1vu$hl8$1@is.intellij.net...
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Hello Eugene,
I'm pretty sure these bugs are already there for at least 2 month....
Best regards,
Maxim
You can do one of the following:
1. Use wildcards. Type '*NameSubstring' and you will see all types containing
with NameSubstring. Type '*NameSubstring ' and you will see all files ending
with 'NameSubstring'.
2. Press Tab after you typed a start of a common prefix. Say, you typed
'So'. Press Tab and ReSharper will automatically complete the common prefix.
You'll get 'SomeTypeNamePrefix' in the box.
3. Use capital casing. For example, you look for a class named 'NameString'.
Type 'NS' and you will get 'NameString' in the list.
The same applies to Go to File.
Unfortunately, that is not supported. We will consider hiding generated files
from Go to File.
Thanks,
Andrey Simanovsky
No 2 & 3 are very cool, thanks :)
Hello Andrey,
Please explain (2) a little more - do you mean in the Find Type '<ctrl-n>'
dialog? where does it 'complete'?
Ronnie
>> 1. It would be very useful if Go To Type function could search types
>> using substrings. If I have for example a lot of types which names
>> starts with "SomeTypeNamePrefix" I have to always type this prefix to
>> find exact type. The same with Go To File function.
>>
>> 3. It would also be very useful if I could specify list of
>> extensions, or patterns which Go To File function should omit. For
>> example, if I search a form called Form1, R# allways shows Form1.cs
>> and Form1.Designer.cs. Then I could specify, that I don't want to see
>> files which meets *.Designer.cs pattern.
>>
>> Greetings from Poland, great job so far :D
>>
Hello Ronnie,
completion of common prefix as described by Andrey only works in the code
editor. It doesn't work
in 'Goto Type' or other navigation features.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>>> 1. It would be very useful if Go To Type function could search types
>>> using substrings. If I have for example a lot of types which names
>>> starts with "SomeTypeNamePrefix" I have to always type this prefix
>>> to find exact type. The same with Go To File function.
>>>
>> You can do one of the following:
>> 1. Use wildcards. Type '*NameSubstring' and you will see all types
>> containing
>> with NameSubstring. Type '*NameSubstring ' and you will see all files
>> ending
>> with 'NameSubstring'.
>> 2. Press Tab after you typed a start of a common prefix. Say, you
>> typed
>> 'So'. Press Tab and ReSharper will automatically complete the common
>> prefix.
>> You'll get 'SomeTypeNamePrefix' in the box.
>> 3. Use capital casing. For example, you look for a class named
>> 'NameString'.
>> Type 'NS' and you will get 'NameString' in the list.
>> The same applies to Go to File.
>>> 3. It would also be very useful if I could specify list of
>>> extensions, or patterns which Go To File function should omit. For
>>> example, if I search a form called Form1, R# allways shows Form1.cs
>>> and Form1.Designer.cs. Then I could specify, that I don't want to
>>> see files which meets *.Designer.cs pattern.
>>>
>> Unfortunately, that is not supported. We will consider hiding
>> generated files from Go to File.
>>
>>> Greetings from Poland, great job so far :D
>>>
>> Thanks,
>> Andrey Simanovsky
Hello Dmitry,
Ok - ta, thought I had missed yet another cool feature!
Ronnie
>> Hello Andrey,
>>
>> Please explain (2) a little more - do you mean in the Find Type
>> '<ctrl-n>' dialog? where does it 'complete'?
>>
>> Ronnie
>>
>>>> 1. It would be very useful if Go To Type function could search
>>>> types using substrings. If I have for example a lot of types which
>>>> names starts with "SomeTypeNamePrefix" I have to always type this
>>>> prefix to find exact type. The same with Go To File function.
>>>>
>>> You can do one of the following:
>>> 1. Use wildcards. Type '*NameSubstring' and you will see all types
>>> containing
>>> with NameSubstring. Type '*NameSubstring ' and you will see all
>>> files
>>> ending
>>> with 'NameSubstring'.
>>> 2. Press Tab after you typed a start of a common prefix. Say, you
>>> typed
>>> 'So'. Press Tab and ReSharper will automatically complete the common
>>> prefix.
>>> You'll get 'SomeTypeNamePrefix' in the box.
>>> 3. Use capital casing. For example, you look for a class named
>>> 'NameString'.
>>> Type 'NS' and you will get 'NameString' in the list.
>>> The same applies to Go to File.
>>>> 3. It would also be very useful if I could specify list of
>>>> extensions, or patterns which Go To File function should omit. For
>>>> example, if I search a form called Form1, R# allways shows Form1.cs
>>>> and Form1.Designer.cs. Then I could specify, that I don't want to
>>>> see files which meets *.Designer.cs pattern.
>>>>
>>> Unfortunately, that is not supported. We will consider hiding
>>> generated files from Go to File.
>>>
>>>> Greetings from Poland, great job so far :D
>>>>
>>> Thanks,
>>> Andrey Simanovsky
Hello Ronnie,
Dmitry provided outdated information.
Thanks,
Andrey Simanovsky
Hello Ronnie,
It works in Go to File, Go to Type dialogs.
Suppose all types in your solution start with "SomeTypePrefix".
You type "Som" and press Tab. The box with the name now contains "SomeTypePrefix".
>>> 1. It would be very useful if Go To Type function could search types
>>> using substrings. If I have for example a lot of types which names
>>> starts with "SomeTypeNamePrefix" I have to always type this prefix
>>> to find exact type. The same with Go To File function.
>>>
>> You can do one of the following:
>> 1. Use wildcards. Type '*NameSubstring' and you will see all types
>> containing
>> with NameSubstring. Type '*NameSubstring ' and you will see all files
>> ending
>> with 'NameSubstring'.
>> 2. Press Tab after you typed a start of a common prefix. Say, you
>> typed
>> 'So'. Press Tab and ReSharper will automatically complete the common
>> prefix.
>> You'll get 'SomeTypeNamePrefix' in the box.
>> 3. Use capital casing. For example, you look for a class named
>> 'NameString'.
>> Type 'NS' and you will get 'NameString' in the list.
>> The same applies to Go to File.
>>> 3. It would also be very useful if I could specify list of
>>> extensions, or patterns which Go To File function should omit. For
>>> example, if I search a form called Form1, R# allways shows Form1.cs
>>> and Form1.Designer.cs. Then I could specify, that I don't want to
>>> see files which meets *.Designer.cs pattern.
>>>
>> Unfortunately, that is not supported. We will consider hiding
>> generated files from Go to File.
>>
>>> Greetings from Poland, great job so far :D
>>>
>> Thanks,
>> Andrey Simanovsky
Thanks,
Andrey Simanovsky
Hmm... Guess I have to read the list of changes for a new build more carefully...
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"