Reputation: 598
When I'm coding in HTML and use input
tag, sublime autocompletion gives me <input></input>
. I'd love sublime gives me <input />
.
How can I change this? (my sublime is version 3)
I saw this: How to change default code snippets in Sublime Text 3?
and this video (portuguese audio): https://www.youtube.com/watch?v=9iTu3C9FzX4
Upvotes: 0
Views: 93
Reputation: 16065
Sublime's HTML autocompletions are done in a Python script.
PackageResourceViewer
using Package Control (if it isn't already installed)PackageResourceViewer - Open Resource
HTML
html_completions.py
('input\tTag', 'input type=\"$1\" name=\"$2\">'),
('input\tTag', 'input type=\"$1\" name=\"$2\" />'),
Upvotes: 2