bmalehorn / vscode-print-it

Wrap a print statment around current word or selection
3 stars 3 forks source link

Is it possible to develop support for Dart #2

Closed yinshaoqian closed 3 years ago

bmalehorn commented 4 years ago

@yinshaoqian Sure, that shouldn't be too hard.

But I'm not familiar with dart. How would you print a variable? Would it look like this?

var x = 5;
print("x = ${x}");
bmalehorn commented 3 years ago

@yinshaoqian Closing this ticket due to inactivity.

As a workaround, you can set the default language formatting with something like this:

"print-it.default.template": "print(\"{{escaped}} = ${ {{raw}} }\");"