dotty-feature-requests icon indicating copy to clipboard operation
dotty-feature-requests copied to clipboard

Add support for override autocompletion in vscode

Open nicolasstucki opened this issue 7 years ago • 6 comments

Make VS Code support something like in InteliJ, first show list of symbols that can be overriden and the generate a defaul implementation that calls super.XYZ(...).

It llooks like:

screen shot 2017-06-23 at 16 16 09

And generates:

override def transformBlock(tree: tpd.Block)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = super.transformBlock(tree)

nicolasstucki avatar Jun 23 '17 14:06 nicolasstucki

Would this auto completion trigger when you write override and ask for completion ?

smarter avatar Jun 23 '17 14:06 smarter

that would be a good option

nicolasstucki avatar Jun 23 '17 14:06 nicolasstucki

Is that how it works in IntelliJ?

smarter avatar Jun 23 '17 14:06 smarter

It is one of the ways it works in IntelliJ

nicolasstucki avatar Jun 23 '17 14:06 nicolasstucki

What are the other ways? :)

smarter avatar Jun 23 '17 14:06 smarter

control-O displays the window with all possibilities (screenshot above). I do not know of any other ways.

nicolasstucki avatar Jun 23 '17 14:06 nicolasstucki