[IDEA] How to customize the code template in IDEA (take HTML as an example) (with a real-time template diagram)

Effect display (including responsive meta and css, js file links): 


 Operating procedures:

1. Open the "Settings" as shown in the figure below


 2. As shown in the figure below, select "File and Code Templates"


3. As shown in the figure below, select "HTML File", enter the required code, check "Reformat according to style" and "Enable live template", and click "OK"


 Fourth, create a new HTML file for testing 


Real-time template diagram:

 

Guess you like

Origin blog.csdn.net/weixin_66896881/article/details/128381936