RafaelSalguero/CSharp2TS

Convert C# to TS when pasting code

Closed this issue · 4 comments

Hi,

I'd find very useful a command which converts to TypeScript the C# code copied in the clipboard and then pastes it at the cursor's position in the editor.
Having a keyboard schortcut for this command would make it quick to convert & paste C# code from another editor.

Would you accept a PR for this feature?

Hi, that sounds great! Just try to make the code clean and using the same programming style as the whole project. Thanks

Actually it seems like this extension is not able to correctly convert C# snippets that do not contain a class definition (e.g. a snippet containing only a method definition) 😢
This is my main use case, so I might need to look into another extension.

Can you post an example of such snippet? Maybe we can do something :) Thanks.

Okay, I'll open a new issue then.