nhabuiduc / TypescriptSyntaxPaste

Visual Studio Extension which convert C# SYNTAX to Typescript SYNTAX
70 stars 24 forks source link

Copying TS code and pasting it screws up #15

Open timpur opened 6 years ago

timpur commented 6 years ago

When i just copy and past TS code in ts files it messes up the original code copied.

Using latest versions of VS2017 and this addon.

randallto commented 5 years ago

Same issue here. If you copy something simple from a TS page like onModelChange() { this.propagateChange(this.model); }

It pastes the output as constructor() { this.propagateChange(this.model); }

I need to disabled it and restart VS2017 to be able to past any typescript from another typescript page.

ltlombardi commented 5 years ago

Same here. Workaround is to press ctrl + shift + v to paste. This pastes the original code untouched. It seems the author gave up on the project...

randallto commented 5 years ago

I am thinking it should be the other way around. ctrl + shift + v to paste from c# to typescript. ctrl + c and ctrl + v are probably the most common used keys used by programmers. It is like having to learn to write with your left hand when your right handed. I ended up having to disable the feature to get back to being productive.