Skip to content

Instantly share code, notes, and snippets.

@harthur

harthur/keymap.json

Created May 7, 2014
Embed
What would you like to do?
Sublime Text snippet for inserting basics of an HTML document
[
{ "keys": ["super+shift+h"],
"command": "insert_snippet",
"args": {
"contents": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n</head>\n<body>\n\n</body>\n</html>"
},
"description": "insert basics of an HTML document"
}
]
@harthur

This comment has been minimized.

Copy link
Owner Author

@harthur harthur commented May 7, 2014

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file.

Now Cmd-Shift-H inserts

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
</head>
<body>

</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment