You can reduce the number of keystrokes when you are typing code by typing abbreviations to generate code from templates. The abbreviation is expanded into the template after you press the Tab key.
The IDE comes with a set of code templates. You can also create your own code templates.
Below is the list of code templates that the IDE provides by default.
Abbreviation | Code Template |
---|---|
!at | <!ATTLIST |> |
!cd | <![CDATA[|]]> |
!do | <!DOCTYPE |
!el | <!ELEMENT |> |
!en | <!ENTITY |> |
?xm | <?xml version="1.0" encoding="UTF-8"?> |
pu | PUBLIC "|" |
sy | SYSTEM "|" |
Abbreviation | Code Template |
---|---|
!el | <!ELEMENT |> |
!en | <!ENTITY |> |
!no | <!NOTATION |> |
cd | CDATA |
em | EMPTY |
en | ENTITY |
ens | ENTITIES |
fi | #FIXED |
im | #IMPLIED |
nm | NMTOKEN |
nms | NMTOKENS |
nn | NOTATION |
pc | #PCDATA |
pu | PUBLIC "|" |
re | #REQUIRED |
rf | IDREF |
rfs | IDREFS |
sy | SYSTEM "|" |
Abbreviation | Code Template |
---|---|
bg | background: |
di | display: |
fs | font-size: |