pawelgrzybek / snippet-generator

Snippet generator for Visual Studio Code, Sublime Text and Atom
https://snippet-generator.app/
1.74k stars 202 forks source link

Tabulation as \t #15

Closed davidperezgar closed 3 years ago

davidperezgar commented 6 years ago

When the origin has a tabulation in spaces, it should translate it to vscode as \t.

Thanks!

pawelgrzybek commented 6 years ago

It currently converts all the tabs into 2 spaces. In the future I may consider an option to change an indent method (tabs vs spaces).

Thanks for contribution 🥑

rogierschouten commented 5 years ago

@pawelgrzybek it does NOT currently convert the tabs to spaces, when you copypaste code into the left pane., I get unescaped tabs in the copied output.

pawelgrzybek commented 5 years ago

Should be easy to fix. How keen are you to submit a PR?

Thanks in advance a ton :)

rogierschouten commented 5 years ago

Done, #33

alaninnovates commented 3 years ago

Any updates on this pr?

wenfangdu commented 3 years ago

Before that PR gets merged, I've created a VSCode extension for this, it supports space to \t conversion.