consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

Extend "Code Intentions": Constructor generation #573

Open GhostInTheSteiner opened 3 years ago

GhostInTheSteiner commented 3 years ago

The code intentions for Consulo don't live up to their counterparts in other Jetbrains Products such as Rider. Those are all options (even though more intentions apparently work):

image

This is just a one-person project for the most part, so I'll restrict myself to a few intentions that are still lacking and that I personally consider important.

Create constructor intentions:

image

Allow the creation of a constructor on the ScriptLineParser class. Also allow overloads of the constructor.

Bonus points if the cursor doesn't need to be on the constructor-name for the tip to show up.

See this example of the currently working method generation for reference:

image (cursor is placed on the method name "Test3", just not visible)

image (cursor is placed on the class name "Test")