简体   繁体   中英

How to autocomplete HTML tags in Sublime Text 3?

I need to auto complete HTML tags in Sublime Text 3. For instance:

When I am typing <h1 after typing >

I should get <h1>|<h2>

Note: The pipe means the position of cursor. And auto complete should be Without TAB

Note: This question may have been asked before but those answer aren't satisfactory as they are irreverent now.

Thanks

Try this Auto Close Plugin can help you to auto close different types of HTML tags. This is a simple plugin that auto closes HTML tags right after '>'.

Inspired by Geany's HTML auto close functionality.

Yeah you can try Auto Close .

This will fullfill your requirement.

If you don't know how to install package. You can follow following steps.

  1. First open package manager ctrl+shift+p
  2. Search and select Add Repository. Then paste the github link.
  3. After that again open package manager. Search and select Install Package.
  4. Search and select Auto Close

Then your are good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM