ue4-vs-extensions icon indicating copy to clipboard operation
ue4-vs-extensions copied to clipboard

Code snippets

Open AlKoulounil opened this issue 6 years ago • 1 comments

Hi Thanks for this extension. It will help me a lot.

I just have one remark. It does not work yet on Code Snippets.

I don't know if you know this functionnality, it's in Tools/Code Snippet Manager, it allows you to make Visual Studio know your most common code parts and automatically write them. I did this for several types of my UPROPERTY, but even with this extension, the tab will still be inserted after UPROPERTY. I think this would be a great improvement of this extension to enable this too.

I looked a bit in your code, I guess the "insert snippet" command is a command event like Paste, but I didn't find it yet and I don't really understand where to look for that. Any clue ?

Have a good one.

AlKoulounil avatar Oct 20 '19 16:10 AlKoulounil

I'm not entirely sure and don't have the environment set up at the moment to test it, but you could try VSConstants.VSStd2KCmdID.INSERTSNIPPET.

hackalyze avatar Oct 21 '19 14:10 hackalyze