plievone / vscode-template-literal-editor

Extension to VS Code. Use Ctrl+Enter to open ES6 template literals and other configured multi-line strings or heredocs in any language in a synced editor, with language support (HTML, CSS, SQL, shell, markdown etc).
https://marketplace.visualstudio.com/items?itemName=plievone.vscode-template-literal-editor
53 stars 5 forks source link

Default Editor Type When Pressing Ctrl-Enter #9

Open sobpilot opened 6 years ago

sobpilot commented 6 years ago

Hi, Thanks for the great plugin! Your documentation says that the editor will default to HTML or the last selection type which it does. Is there a way to set this so that I don't have to select the default each time?

plievone commented 6 years ago

Hi, do you want to override the default and omit the selector when the default configuration variable is set -- I mean that then the only way to change the language is to change the configuration variable or remove it. I could do that kind of a specific configuration variable for your specific use.

In the meantime, I'm just used to pressing enter quickly twice when opening the literal, it is very quick and actually I usually don't even notice it.

sobpilot commented 6 years ago

No problem, I'll just press Enter twice.

I mentioned your product in my latest blog...

https://medium.com/@steveolensky/create-a-spa-vuejs-application-without-node-webpack-or-any-other-build-process-using-vue-router-b9bf8e36e958

Thanks for the great work!

sobPilot

On Wed, Jun 6, 2018 at 7:45 AM plievone notifications@github.com wrote:

Hi, do you want to override the default and omit the selector when the default configuration variable is set -- I mean that then the only way to change the language is to change the configuration variable or remove it. I could do that kind of a specific configuration variable for your specific use.

In the meantime, I'm just used to pressing enter quickly twice when opening the literal, it is very quick and actually I usually don't even notice it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/plievone/vscode-template-literal-editor/issues/9#issuecomment-395055430, or mute the thread https://github.com/notifications/unsubscribe-auth/AUKerXIMS_ykIvucrE5-MLAOlmzxVIk3ks5t587igaJpZM4Uch_f .