How to create a XML-based property file?
已回答
A XML-file for properties looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Presets</comment>
<entry key="min_name_length">1</entry>
<entry key="max_name_length">10</entry>
</properties>
Can IntelliJ create a blank file including the meta-tags "<?xml..." and "<!DOCTYPE properties..."? Or do I always have to remember these tags and write them manually into a new properties.xml?
Many thanks, Slevin
请先登录再写评论。
You can create your own file template at Settings (Preferences on macOS) | Editor | File and Code Templates.
So there are no Standard Templates built in. Thank you for the answer.