File templates not visible with Alt + Insert in 10.0.1 ?
I created a custom file template then I try to apply it (by pressing ALT + Insert) but only the "default" ones are visible (Java Class, File, Package).
Any hints how to make file templates appear under ALT + Insert?
It worked fine in version 9. Is it a bug or some feature change?
--
Cheers,
Tomek Kaczanowski
请先登录再写评论。
I'd like to know this too. Having custom templates is a must for me, so is this going to be fixed or should I switch back to 9.x? I'm using community edition.
If you look in the context menu that comes up from Alt+Insert (or right-click, new), you will see an item labeled "From File Templates..." If you select that you will get a popup with a drop-down allowing you to select one of your file templates. The next time you go the alt+insert menu, that file template will be present in the list (without needing to go to the "From File Template" popup). I am not sure how many items are retained. I currently have 8 in my list. My guess is that there is a limit since I suspect that this was done to cut down on the number of items in that context menu and to prevent it from getting too large.
Mark, I don't have that item in my context menu, see the attached screenshot. I'm running Idea in Ubuntu 10.10 64x if that makes any difference.
Edit: I just noticed that the JUnit test methods have gone missing too:
create a new test class -> go to the editor -> press Alt + Insert: the "Generate" menu opens. It used to have the JUnit test methods in it in 9.0.4, but now only the default method actions are visible.
Switching back to 9.0.4, but I would still like to know if this is a bug or feature. :)
Attachment(s):
contextmenu.jpg
Very strange, as I have that option. It looks like someone has reported this issue: http://youtrack.jetbrains.net/issue/IDEA-63535 last week. I'd suggest voting for it.
Attachment(s):
screenshot.png
thanks for the JIRA link, I already voted for this one
--
Cheers,
Tomek Kaczanowski