roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

IDE: Intellisense: Insert full method call

Open WrongBit opened this issue 8 years ago • 88 comments

When you type "object.fu", Intellisense inserts just "function", while full syntax is "object.function();". Why these parens and semicolon are skipped? I know sometimes I should insert arguments, but even in this case for me IDE could help jumping between parens (to continue typing) than skipping all punctuations at all.

Of course I don't ask it as an absolute behavior - let me choice option in IDE settings.

WrongBit avatar Jul 06 '16 16:07 WrongBit

Improvement Not only Intellisense should write braces and semicolon, but also place cursor between braces (if function require parameters) with showing context menu, or behind semicolon (if function does not require parameters)

vbcodec avatar Jul 07 '16 09:07 vbcodec

Resharper has such behavior by default from very beginning. It automatically adds "()" and "<>()" (for generics) and put cursor between braces. It's really sad that vs2017 doesn't have such option. Any chance it will be added in near future?

AlexBar avatar Sep 27 '17 14:09 AlexBar

A whole year past and all MS did is.... contrast scheme! Definitely playing with colors is more easier than writing useful code.

WrongBit avatar Sep 30 '17 00:09 WrongBit

@WrongBit Would you be interested in contributing this feature yourself? I could help guide you on how you could go about implementing it!

CyrusNajmabadi avatar Apr 08 '18 19:04 CyrusNajmabadi

This definitely needs to be configurable. I don't think I'd want this behavior personally.

Neme12 avatar Apr 08 '18 19:04 Neme12

@Neme12 : before dirtying conversation, read carefully original text:

Of course I don't ask it as an absolute behavior - let me choice option in IDE settings.

WrongBit avatar Apr 10 '18 14:04 WrongBit

@CyrusNajmabadi : I can try (in a spare time), please give guide. MS just spread resources on useless features, while IDE (where we spend 99% time) is abandoned for 3rd party hobbyists.

WrongBit avatar Apr 10 '18 14:04 WrongBit

@WrongBit If you'd like, feel free to join the dotnet/roslyn gitter channel. I'm also @CyrusNajmabadi over there. I can help you out.

Note: i disagree with your assessment. Roslyn has done a ton of feature work over the past few years. Just take a look at the releases (or use github to diff things) to see how much has been added! :)

CyrusNajmabadi avatar Apr 10 '18 16:04 CyrusNajmabadi

@WrongBit Sorry, it's my fault I missed that. I was just politely expressing my opinion, you don't need to take it personally. I'd be happy with you contributing this.

Neme12 avatar Apr 10 '18 17:04 Neme12

@Neme12 : sorry too, dude! When something really useful AT LAST requested for IDE, I expect people understand importance and HELP me, instead of expressing "I don't like that". It is useful, I cannot find even one scenario you wouldn't like behaviour I offered. Any comments??

WrongBit avatar Apr 10 '18 19:04 WrongBit

@CyrusNajmabadi : I measure QUALITY, not "changed LOC". As a desktop/server developer I see very few useful things appear in IDE. Moreover: most of 'em HAD to be done in a first years VS exists at all. Say, "filtering members by type" in IntelliSense. I bet my eye this thing immediately was demanded, but mediocres sacrifice it in favor of other stupid features.

WrongBit avatar Apr 10 '18 19:04 WrongBit

I expect people understand importance and HELP me

I offered to help :) Feel free to come over to gitter.im and we can discuss things there.

As a desktop/server developer I see very few useful things appear in IDE.

Everyone is different. While you may not have found useful things appear, many others may have. A lot of work has gone in over the years into the Roslyn IDE (just check my own contributions, as well as the contributions of many community members, if you want to see :)). You may personally not have found them valuable, but that doesn't mean they haven't substantively contributed to a much better experience for many other customers.

I bet my eye this thing immediately was demanded, but mediocres sacrifice it in favor of other stupid features.

It would be really helpful if the conversation was kept civil. It doesn't help at all to demean people, nor does it make someone want to help you out with improving the features here. No one is calling you names, or stating that the things you care about are 'stupid'. The golden rule goes a long way. Thanks!

CyrusNajmabadi avatar Apr 10 '18 19:04 CyrusNajmabadi

@CyrusNajmabadi : hiding behind "civil behaviour" don't eliminate GUILTY of some people for making mistakes, especially when they was warned about mistake. Would you hire again people who "mistakenly" put door upside down? Sure, not. Why you protect same people in IT? And if door is easy to fix, mistakes in language design cost us YEARS! Are you Duncan Mclaud to forgive everybody?? :) Me - not, I wish I could bar every guilty person from language team and redesign stuff. I know we all do mistakes, but one mistake made by lack of information, while other just because "I'm boss - I want to!". I despise such workers and unfortunately we have more and more such in IT. :( Wanna sample? Azure and about. Dead, "money suckers" technology. Count how many MS invest there!

WrongBit avatar Apr 10 '18 20:04 WrongBit

You catch more with honey than vinegar. 😄 Again, i'm available to chat about how you implement this feature over on gitter.im. If you would like to actually work toward this stated feature, i'm happy to help out over there.

I am not interested in debating with you your personal beliefs as to the quality of the work this team has produced or whether or not their decision have suited you or not. I don't think it's helpful or constructive. Thanks! :)

CyrusNajmabadi avatar Apr 10 '18 20:04 CyrusNajmabadi

That will help a lot!

leandroklein avatar Oct 03 '18 11:10 leandroklein

Adding more notes

For example, if typing out a LINQ statement starting Array.Empty().Select( and pressing tab, define a skeleton lambda expression for the Func argument

jinujoseph avatar Nov 12 '18 08:11 jinujoseph

I recently started learning C# after having used Eclipse for Java. I'm very surprised and disappointed that this option is not available in Visual Studio (without having to install the ReSharper plugin). In fact, I think that not only should this option be available, but it should also be enabled by default! There are many features I enjoy about Visual Studio over Eclipse, however, this is certainly the one thing I dislike about VS to date.

grandslammer avatar Aug 08 '19 14:08 grandslammer

Guys, this issue it's close or still available to be implemented? If the help wanted still stand please say something. ;-)

GuilhermeMorais avatar Aug 27 '19 07:08 GuilhermeMorais

If the help wanted still stand please say something. ;-)

The 'help wanted' still stands.

CyrusNajmabadi avatar Aug 27 '19 07:08 CyrusNajmabadi

Unfortunately until MS waste resources on games with "clouds" or Git, they will never have resources for really necessary things. So you need help not in coding, but eliminate mismanagement. Too much low qualified people in "top"! Note on date of issue: 3 YEARS(!) you cannot sit and organize team for this feature. Do you really think something can help you??

WrongBit avatar Aug 27 '19 08:08 WrongBit

@wrongbit my offer still stands. I'm helping @guilhermeMorais Over in gitter. Would you like to contribute your time and energy in a positive fashion instead of a negative one?

CyrusNajmabadi avatar Aug 27 '19 16:08 CyrusNajmabadi

Note on date of issue: 3 YEARS(!)

Many issues are far older. Length of issue is not the deciding factor. The concern is value to the community. Efforts are spent where there is the most bang/buck for the community and ecosystem as a whole. Thanks

CyrusNajmabadi avatar Aug 27 '19 16:08 CyrusNajmabadi

This single issue prevents me from using VS Code as my default editor for already 3 years. Will continue to work in WebStorm / Rider until this is fixed.

I think this is a big problem for every developer who is used to work with ReSharper - I would assume for majority of .NET developers.

Parentheses auto-opening has the same importance as parentheses and tags auto-closing. Imagine VS Code didn't have tags auto-closing, that would be a deal-breaker, and not a minor problem. Issues with typing experience should have the highest priority, as this is the main feature of code editors.

rsujatinov avatar Oct 06 '19 02:10 rsujatinov

VS team even not assigned this issue to anybody. Guys, you don't need more people - you need more smart management of things you're busy with NOW. Fancy animation CAN WAIT. Azure CAN WAIT. Code editor CANNOT wait, because it's used for hours(!) (like @sujatinov said). You have huge problem with evaluating priorities. Feature I requested had to be done maybe after 2 years after VS was introduced. Fast coding is the primary goal of IDE, esp. when it eliminates syntax errors too.

WrongBit avatar Oct 30 '19 13:10 WrongBit

Braces completion is fine (even though currently you can get it by using ( instead of Enter to commit completion). Especially would be great for that to work if I use ; or . to commit completion instead of Enter.

It's not clear to me how semicolon completion should work though. How should it behave if you want to continue method chain instead?

Dreamescaper avatar Oct 30 '19 17:10 Dreamescaper

@WrongBit my offer still stands. Would you like to contribute your time and energy in a positive fashion instead of a negative one? Feel free to come to to gitter or discord and we can work through this.

CyrusNajmabadi avatar Oct 30 '19 18:10 CyrusNajmabadi

Issues with typing experience should have the highest priority, as this is the main feature of code editors.

VS is more than a code editor. And tehre are millions of customers with many different needs. The primary needs of one group do not equate to being the primary needs for the entire ecosystem.

CyrusNajmabadi avatar Oct 30 '19 18:10 CyrusNajmabadi

VS team even not assigned this issue to anybody.

Correct. This is a 'help wanted' issue. i.e. it would accept a contribution from someone for whom this is important enough. @WrongBit you've expressed many times that this is a super important feature for you. If that's the case, would you be willing ton provide a contribution here? Given the extremely weight you give this work over others, it would make sense as something you could then give your own resources toward solving instead of demanding it from others.

Thanks!

CyrusNajmabadi avatar Oct 30 '19 18:10 CyrusNajmabadi

For gitter, you can go to: https://gitter.im/dotnet/roslyn For discord, the channel is #roslyn on the C# server.

Lots of people willing to discuss things and help out there. Cheers!

CyrusNajmabadi avatar Oct 30 '19 18:10 CyrusNajmabadi

Still "help wanted"?!! Maybe you'll stop wasting time on sh**t like Azure (or Git) and make important feature?

WrongBit avatar Feb 16 '20 21:02 WrongBit