Wraps a chunk of HTML code in tags
Перейти к файлу
Brad Gashler 973dcd9f87 One more readme update. Trying to kick off travis build 2016-08-18 13:07:48 -07:00
.vscode Add e2e tests for block and line usages with spaces and tabs 2016-06-01 19:51:31 +02:00
images Updated readme for new version 2016-08-18 13:00:45 -07:00
src One more readme update. Trying to kick off travis build 2016-08-18 13:07:48 -07:00
test Tidying up formatting 2016-08-18 11:56:21 -07:00
typings Updated to api level 0.10.x 2015-11-21 17:03:49 -08:00
.gitignore * Fix problem with tests on Linux and OS X 2016-08-01 13:43:04 +02:00
.travis.yml * Fix problem with tests on Linux and OS X 2016-08-01 13:43:04 +02:00
.vscodeignore Initial commit 2015-10-22 21:42:26 -07:00
LICENSE Update LICENSE 2015-11-18 15:14:22 +01:00
README.md One more readme update. Trying to kick off travis build 2016-08-18 13:07:48 -07:00
package.json Fixed launch issue. Updated package.json 2016-08-18 11:56:11 -07:00
tsconfig.json * Fix problem with tests on Linux and OS X 2016-08-01 13:43:04 +02:00
typings.json Add e2e tests for block and line usages with spaces and tabs 2016-06-01 19:51:31 +02:00
vsc-extension-quickstart.md Updated to api level 0.10.x 2015-11-21 17:03:49 -08:00

README.md

vscode-htmltagwrap

Build Status

What is it

Wraps your selection in HTML tags. Can wrap an inline selection or a selection of multiple lines.

To use, select a chunk of code and press "Alt + W" ("Option + W" for Mac).

Wrap text in your images

Download it on the Visual Studio Marketplace

How to Use It

Select a block of text or a string of text. Press Alt + W or Option + W for Mac. Type the tag name you want, and it will populate the beginning and end tag automatically.

This extension works best in files that either use tabs or spaces for indentation. It may not work as well with mixed tabs/spaces.

Report Issues

I welcome pull requests. Please report an issue on GitHub if you have trouble.

Updates

0.0.3

  • Spaces and tabs for indentation are now both supported.
    • Special thanks to @gdziadkiewicz for his PR #4, which also introduced tests for development!

Future features being explored

  • #5 Once a user hits spacebar, then the second multi-cursor is lost so the user can write attributes like classes or styles. (Idea courtesy of Ruben Rios)
  • Should we support getSelections() allowing multiple selections to be wrapped?