- This topic has 3 replies, 2 voices, and was last updated 18 years, 10 months ago by zapa.
-
AuthorPosts
-
zapaMemberI 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>
Scott AndersonParticipantThanks for bringing this to our attention. We’ve entered a bug report for further investigation into both workarounds and fixes. In the interim, we apologize for the inconvenience this is causing in your development.
zapaMemberThanks a lot
Is there anywhere I can track this fix myself , or should I just wait for a new release ?
zapaMembernothing ?
also another sugestion , feaure request . I think it would be nothing but smart , if you’ve done the work to have the snippets where they are , available for drag and drop and double click , to also allow the user to set a “keyword” just like IDEA so that one could bring in a snippet in the code by not using the mouse and simply typing the coresponding snippet key word , pressing alt+space or something , and getting the snippet in the code .
u know what i mean ?
-
AuthorPosts