facebook

Why do snippet templates create new lines

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #243673 Reply

    zapa
    Member

    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”&gt;

    <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”&gt;

    <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>

    #243717 Reply

    Scott Anderson
    Participant

    Thanks 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.

    #243925 Reply

    zapa
    Member

    Thanks a lot

    Is there anywhere I can track this fix myself , or should I just wait for a new release ?

    #244110 Reply

    zapa
    Member

    nothing ?

    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 ?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Why do snippet templates create new lines

You must be logged in to post in the forum log in