ecdc
ecdc copied to clipboard
Shortcut for specific function
Firstly, Thank you for the helpful package. I use the string to html entities function the most, and I want to bind the ctrl+alt+c to do this string to HTML function only, to avoid the additional step to select the string to html. How can I do that?
At the moment this isn't possible. Key bindings are tied to commands, and the conversion functions are not implemented as commands, they are just an item which is offered up in the pick-list. In order to do this we would need to register a separate command for each conversion so that folks could go in and manually bind them. I'd accept a PR for this.
It would involve:
- Creating an entry for each conversion function in the package.json file.
- Hoisting the list of converters into a field.
- Extending the command registration function to register a command for each converter.
Hi, thanks for the extension. I'm commenting here because your suggestion above could be just what I need. I would also be using string to entities, and the reverse, to manually edit Report Builder rdl (xml) files. My problem is some entities (e.g. ) are incompatible with Report Builder, and I only need to convert select characters such as <.
Couldn't you achieve this with args? We could create a keybinding and pass args to to it like "encode-string-to-url".
I too exclusively use the STRING TO (DECIMAL) HMTL ENTITY and I do it very, very often; so really need a quicker way of doing this... I'm a school maths teacher and prefotmatted text is how I write help for my students - as it is quick and easy... I'm new to VS Code and to be honest, a bit of a dinosaur... I didn't fully understand the bit where you said "I'd accept a PR for this": But, if you intirudced a separate (paid) extension that allowed for just the use I need, or a shortcut for it, I now I'd pay - and I know a lot of other older users like me would too...
Also - my thanks too for this package...