1

I edit the built in code snippet propdp for personal preferences. My problem is that Visual Studio updates reset the edited propdp to its default.

I could add a custom snippet with the same shortcut propdp but Visual Studio will show me 2 propdp options every time I want to use it.

I also could add a custom snippet with a different shortcut, let's say mypropdp, but I want to avoid this and just use propdp as shortcut.

So, my question is, is there any way to hide or override built-in snippets with the same shortcut so Visual Studio shows only one of them?

1
  • I hope someone gives a proper answer to this - I hate the default code snippets - I don't want a setter on my properties! My suggestion (a total hack) would be to write your own service with a FileSystemWatcher to monitor C:\Program Files\Microsoft Visual Studio\2022\Professional\VC#\Snippets\1033\Visual C# for changes, then immediately overwrite them with the good snippet file! Commented Apr 13, 2024 at 18:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.