-
Notifications
You must be signed in to change notification settings - Fork 28
-
Notifications
You must be signed in to change notification settings - Fork 28
Paste code snippet in Ceylon Explorer package should create a .ceylon file #1225
Comments
I guess what is needed for this one is a customized |
Yep: it's actually |
@PhiLhoSoft I have implemented this. WDYT? |
Great! Thanks for this. (and for the autocompletion on camel case too). |
Hi Gavin, i tried to copy 3 files (the file .ceylon, not the content) to another package and now it opens the popup for the snippet, maybe thats not a intended behavior. |
@DiegoCoronel hopefully should be fixed now. |
checked, thanks, |
Closing. @PhiLhoSoft can reopen if there's something wrong with it. |
A trick I appreciate in Eclipse Java is that I can copy a code snippet in a file, then select a package (eg. in the Project Explorer) and paste the snippet. Eclipse will create a .java file with the snippet in it.
If I copied a whole class, the new file will have the class name and a package declaration is added.
Otherwise, it names the file Snippet and creates a class of same name where it pastes the code.
I tried this in the Ceylon Explorer (out of habit), and I got... a Snippet.java file with a Java class declaration!
It would be nice if the Ceylon plugin could detect such action and just create a Snippet.ceylon file with the code pasted raw (or in a class?) in it. Or be a little smarter and detect if we paste a class or interface, to name the file after the (first) found item.
The text was updated successfully, but these errors were encountered: