Community
Participate
Working Groups
In the Surround With menu there are two (confusing) items 1. Try/catch Block - uses 'Code Templates' 2. try (try catch block) - based on 'Editor Templates' The first one invokes the Surround With 'Refactoring' which will find the exact exceptions thrown from the selection and use those in the catch block. The second one, which uses the editor template, always uses 'Exception' in the catch block. => This can be quite confusing. Solution 1. Use icons in the Surround With menu a) The 'green arrow' we use for Quick Assists can be used to indicate that the action is a refactoring b) In Content Assist popup we use an icon to indicate template proposals, the same icon can be used here. 2. 'Configure Templates' action should also show the 'Code Template' node.
Fixed in master - 52f1ab9ee335b34a6fc25ad2f613fcd4ed03ac67 The Surround With menu looks quite nice with the icons, and I think the icons make it clearer what the corresponding actions do. (In reply to comment #0) > 2. 'Configure Templates' action should also show the 'Code Template' node. The only possible glitch in the fix is that the 'Code Style' node is not auto-expanded, and a user has to expand that to see the 'Code Templates' node. But I don't think that this is too bad.
(In reply to comment #1) > Fixed in master - 52f1ab9ee335b34a6fc25ad2f613fcd4ed03ac67 > > The Surround With menu looks quite nice with the icons, and I think the icons > make it clearer what the corresponding actions do. +1. > (In reply to comment #0) > > 2. 'Configure Templates' action should also show the 'Code Template' node. > The only possible glitch in the fix is that the 'Code Style' node is not > auto-expanded, and a user has to expand that to see the 'Code Templates' node. > But I don't think that this is too bad. I've fixed that.