bgashler1 / vscode-htmltagwrap Goto Github PK
View Code? Open in Web Editor NEWWraps a chunk of HTML code in tags (for Visual Studio Code).
License: Other
Wraps a chunk of HTML code in tags (for Visual Studio Code).
License: Other
Could you please release this extension for use in VSCodium as well?
I am on a Mac and when using Option + W, a warning message from VSCode appears: command 'extension.htmlTagWrap' not found.
I tried restarting VSCode, uninstalling and installing the extension again, but it did not help.
I used Help + Toggle Developer Tools to open the console. This issue appears when I use the command:
Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform
This is probably more an enhancement request. I have the defaut tag set as code
, since that's the one I most commonly need. However, for localization reasons, we have to add the attribute translate="no"
to all code tags.
So I was happily surprised to see that I could set the default tag to code translate="no"
!
But then saw that the attribute was added to both the start and end tag.
Don't know if that is easy to overcome, but thought I'd ask.
Thanks,
Robert
From @Spoofardio on July 29, 2017 0:7
Copied from original issue: microsoft/vscode-htmltagwrap/pull/13
From @greyvugrin on December 22, 2016 21:27
This could speed up development by allowing users to skip the highlighting portion if they know they want to wrap all text in the line where the cursor is located
Copied from original issue: microsoft/vscode-htmltagwrap#8
Bug
htmltagwrap
0.0.7
Darwin x64 18.2.0
1.30.0
{
"activationTimes": {
"startup": false,
"codeLoadingTime": 5,
"activateCallTime": 0,
"activateResolvedTime": 0,
"activationEvent": "onCommand:extension.htmlTagWrap"
},
"runtimeErrors": [
{
"name": "TypeError",
"message": "Cannot read property 'text' of undefined"
},
{
"name": "TypeError",
"message": "Cannot read property 'text' of undefined"
},
{
"name": "Error",
"message": "TextEditor#edit not possible on closed editors"
}
]
}
From @setilikim on June 23, 2017 17:56
I am using the Git Lens extension and the html tag wrap command (opt+W) is being overridden. It would be nice to have a setting available so the tag wrap command could be changed in case of incompatibility with other extensions or personal preference.
Copied from original issue: microsoft/vscode-htmltagwrap#11
It seems that last commit was made in 2017, should we be worried that the project is dead?
Should this project be forked into a new project or should @bgashler1 add maintainers to this project?
When using only keyboard to move the cursor and marking text, the closing tag created is empty every second time.
Example steps:
Using undo fixes the closing tag.
This does not happen when using the mouse to mark text.
Other than that, I love the extension!
From @hmigneron on October 31, 2016 15:40
This pull request adds support for multiple selections.
Multiple selections work the same way single ones do : inline tag wrap is supported as well as multiline "block" tag wrap. We can also have a mix of the two.
The pull request also addresses the bug with empty selections (#6) which are now supported (both with single or multiple selections).
Thank you !
Copied from original issue: microsoft/vscode-htmltagwrap/pull/7
I'm on a Mac and option w replaces highlighted text with a funny looking underlined dot
I can't find any instructions on how to proceed.
a more detailed look
autoDeselectClosingTag = true
detailed
alt+w
-> wrapping the string: a more <p>detailed</p> look
-- goodspan
-> a more <span>detailed</span> look
-- goodspace
-> a more <spn >detailed</spn > look
-- WRONG, you can see it removes part of the tagFrom @GitLiamuk on September 8, 2017 9:2
VSCode version: 1.16.0 adds a html autoclose feature.
This feature causes this extension to wrap the selected text prematurely, resulting in faulty markup.
Copied from original issue: microsoft/vscode-htmltagwrap#15
I'm using version 1.25
MacOS 10.13.5
When you past a tag, all the content is pasted into the closing tag, even after the space.
For example, if I have span class="comment"
on the clipboard, and press alt+w then ctrl-v, I get this:
<span class="comment"></span class="comment">
...it would be nice if the shortcut (Opt + W) worked as a toggle, meaning you could take tags on or off. It helps when I'm experimenting with different tags like p, h1, h2, etc.
Would be awesome adding another shortcut with Shift
Alt+W:
<div>something</div>
Alt+Shift+W
<div>
something
</div>
When I select text and add a tag, then enter a component name and hit tab to autocomplete, the closing tag is missing the final character, like so:
<MyComponentName>/*stuff*/</MyComponentNam>
Since am using "Alt + w" to invoke the "search & replace" feature of vscode, Am wondering if there is a separate setting i can use to attach a different key-binding to invoke your plugin.
NOTE: i.e Pressing "F7" to invoke plugin instead of using "Alt + w"
From @aeschli on April 21, 2016 21:18
From @mizujin on April 21, 2016 13:35
Steps to Reproduce:
Copied from original issue: microsoft/vscode#5607
Copied from original issue: microsoft/vscode-htmltagwrap#3
When you try to wrap an email address with an anchor tag, it first puts mailto:[email protected] in the href attribute, but after pressing enter to accept it, it ends up as an empty href. It's a small thing, but would be really helpful if it worked properly.
Thanks for the amazing addon.
Btw - amazing extension! thank you very much!
There is an issue when you wrap code it defaults to a
tag then you change to say a div then you press ctrl +z to undo and one of the steps in the undo is changing your div back to a p tag and when this happens a random div that my newly created tag is inside of also changes to a p tag.
From @thisislawatts on January 11, 2017 16:44
Hey there, not sure if this is a bug or a small feature request.
At the moment the plugin doesn't appear to support multiple pointers in the document.
The behaviour I would hope for would be each selection gets wrapped in the tag.
Copied from original issue: microsoft/vscode-htmltagwrap#9
From @jehugaleahsa on January 26, 2017 2:55
I don't think it makes sense to create ending tags with classes, etc. As soon as I type space, I really want the macro to finish. I end up doing this by accident all the time: <div class="hello">hello</div class="hello">
.
Copied from original issue: microsoft/vscode-htmltagwrap#10
From @kkorus on July 22, 2017 10:52
How to change default tag while wrapping? I would like to change it from <p></p>
to <div></div>
.
Copied from original issue: microsoft/vscode-htmltagwrap#12
From @hmigneron on October 31, 2016 4:49
When the selection is empty, tag selection doesn't work properly : the closing tag appears before the opening tag.
VSCode : 1.6.1
Windows 8
Copied from original issue: microsoft/vscode-htmltagwrap#6
Can I choose between multiple tags? For example in same cases I might want to wrap a selection with P, other times it might be a DIV
Hello, i couldn't find an email to get in contact with you
I've seen this gif that you posted in a vscode issue about the glyph area:
Do you mind telling how you styled the folding icons [+] [-], the line width, color, place, like on your gif? It looks almost the same than on Visual Studio which was exactly what i was trying to achieve.
I have download an extension named "Minimalist Product Icon Theme" but it looks weird, also looks where the line is placed:
under "app" instead being placed under the [-] icon like on your gif.
What information do you need?
I am on a windows machine. Surface Pro 3. Video below:
https://drive.google.com/file/d/1mjWRtzKcVjnyCEotoUPsps2ivj1WrOEy/view
From a few days ago, VSCode suddenly started editing my end tags while I type the open tag. It gets in the way more than it helps (like deleting > of end tag when I hit delete key on the open tag). Is this part of any of the following extensions?
If not, I'm sorry to bother you guys. It might be unrelated new feature elsewhere. If yes, let me know. I would file a few bugs.
Thanks
Bug
htmltagwrap
0.0.7
Darwin x64 18.7.0
1.40.1
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 30,
"activateCallTime": 3,
"activateResolvedTime": 18,
"activationReason": {
"startup": false,
"extensionId": {
"value": "vscode.extension-editing",
"_lower": "vscode.extension-editing"
},
"activationEvent": "onLanguage:json"
}
},
"runtimeErrors": []
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.