Auto-wrap selected code with a chosen tag. #2398
Replies: 3 comments 7 replies
-
@brazenCoding, that's a really cool idea. We will definitely look into it, and see which UX might be the best and most intuitive. BTW, are there any existing editors that does this, so that we can get a better idea? |
Beta Was this translation helpful? Give feedback.
-
@abose let us keep this idea in a loop for now. We'll have to think about the various UX options available and then decide one. Will look into it in the December release! Once again thanks for the idea. @brazenCoding |
Beta Was this translation helpful? Give feedback.
-
Tracking issue #2403 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I don't see how auto-closing of tags is a useful feature and maybe that can be explained here, but I was thinking it would be neat if I can highlight code, hit a hotkey that opens an in-line modal, type the tag I want wrapped around the selected code, hit enter to close the modal, apply the tag around the selected code, and finally it focuses the cursor after the text of the open tag if I want to add attributes, classes or styles to the tag.
Actually it'd be even cooler if the modal understood those attributes too and the entire opening tag can be written in the modal if I wanted (but still focuses at the end of the open tag if there's anything else I think of after hitting enter)
A lot of the time, I am thinking about the content of a section before I properly wrap it in appropriate tags, so it would save me a lot of effort with the current way where I'm writing my open tag and then cutting and pasting the closing tag at the end of the content.
Beta Was this translation helpful? Give feedback.
All reactions