consulo / consulo-csharp

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

Extend "Code intentions" #571

Closed GhostInTheSteiner closed 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 Class intentions:

image

Options:

  1. In another file (by default in the same folder, if possible open a dialog and allow the user to select the directory)
  2. In the same file

Create constructor intentions:

image

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

Create handler method intention

image

Also allow the generation of an actual handler method like in Visual Studio:

image

image

image

Bonus points if the cursor doesn't need to be on the highlighted word for the tip to show up.

See this:

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

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

GhostInTheSteiner commented 3 years ago

Issue was splitted into three parts by request of the developer