After entering first characters of <textarea>
tag and using autocomplete ( eg <texta
and hitting ENTER) editor generates following snippet: <textarea rows="" cols=""
It's extremely unhelpful since I don't use rows and cols attributes.
How can I modify those snippets ? I tried "Live templates" section but it's not there.
In this case code completion is performed according to the DTD, which defines rows
and cols
attributes of the textarea
tag as Required .
Most likely your file starts with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
or the default HTML language level defines it.
To address this problem you can create HTML 5 files with <!DOCTYPE html>
and PhpStorm will stop completing these attributes.
See also the related IDE setting:
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.