Skip to content

'Embed into Div' option in Edit menu #132862

@Remonetized

Description

@Remonetized

When writing code, one thing I often do (perhaps because I'm fairly amateur) is wrapping a section of html within a new div, eg a bootstrap container. There may be some easier way to do this, but I tend to use emmet shortcuts to create a div, delete the closing tag and make the new one below the relevant section (or cut and paste it). Then of course I highlight the code to indent it. It would be very useful to have an option or extension which allows me to highlight a section of code, and wrap it into another div, ideally even indenting it. This would be similar to the option in the EDIT menu to highlight a section and toggle a block or line comment, but instead you highlight the section, then select 'embed into div'. Obviously this only applies to html files so maybe it could be a contextual feature.
Anyway if this is already possible in some way or at least there's a quicker workaround then please let me know. Many thanks.

Metadata

Metadata

Assignees

Labels

emmetEmmet related issuesinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions