I have just created a new snippet template . As i drag and drop or double click on it , the code gets inserted and each line seems to have a new line at the end . this is VERY annoying , is there a way i can fix this or is this a bug ?
( I did copy paste that thing , so maybe i need to write all the code in by hand to get no new lines ? I’ll try that , but this is still anoying )
edit : tried simply typing , same result . this preety much nullifies the usefullness of the snippets as it requires more editing to get rid of the new lines ( keeping things tight together , when they are related is great for reading code faster )
template :
<?xml version=”1.0″?>
<!DOCTYPE hibernate-mapping PUBLIC “-//Hibernate/Hibernate Mapping DTD 3.0//EN”
“http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”>
<hibernate-mapping>
<class name=”${name}” table=”${table}”>
<meta attribute=”class-description”>
${descr}
@author ${auth}
</meta>
<id name=”id” type=”int” column=”${idname}_ID”>
<meta attribute=”scope-set”>public</meta>
<generator class=”native”/>
</id>
</class>
</hibernate-mapping>
result :
<?xml version=”1.0″?>
<!DOCTYPE hibernate-mapping PUBLIC “-//Hibernate/Hibernate Mapping DTD 3.0//EN”
“http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”>
<hibernate-mapping>
<class name=”” table=””>
<meta attribute=”class-description”>
@author Bob
</meta>
<id name=”id” type=”int” column=”_ID”>
<meta attribute=”scope-set”>public</meta>
<generator class=”native”/>
</id>
</class>
</hibernate-mapping>