Sublime Forum

Paste as plain text

#1

I would like to be able to copy text from a word document and then hit something like ctrl+alt+v to paste the text into Sublime with the unicode(or is it utf-8) characters converted to their web safe counterparts.

So 66 and 99 quote marks would become ", and apostrophe would become ’

0 Likes

#2

There’s “HTML: Special Chars Encode” which I currently have a key binding for:

{ "keys": "ctrl+e"], "command": "encode_html_entities" }

I’m sure there will be a way to bind that to paste, select all, and encode…

0 Likes

#3

This is handy, but I would still love to know how to paste things as just plain old ugly text without converting to entities.

0 Likes

#4

I was in the kitchen and in minutes cook this package to provide some handy clipboard commands including “paste as plain text”

See: github.com/SublimeText/ClipboardCommands

There is a description on how to add a short-cut to the command you want. Feel free to fork it and improve it.

Regards

0 Likes

#5

I love your work tito!

0 Likes