madskristensen / AddAnyFile

A Visual Studio extension
Apache License 2.0
262 stars 121 forks source link

VS2022 pro .templates don't show up. #140

Open cosmoKenney opened 1 year ago

cosmoKenney commented 1 year ago

Describe the bug In vs 2022 pro if I add a .templates folder to the root of my c# project, and add a .ts file to it I do not see anything related to my template on the popup box for this extension (i.e. Shift + F2).

To Reproduce Steps to reproduce the behavior:

  1. add a .templates folder
  2. add a .ts file with some text in it to the .templates folder
  3. hit Shift+F2
  4. Click the "Show All Templates" button
  5. Search for TypeScript
  6. Nothing but the default templates show up.

Expected behavior Hit Shift+F2 and see my new .TS template in this extension's pop-up box. Or see the template in the add new item box. Shouldn't have to search for it.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

blue-cloud-net commented 1 year ago

May be VS new features AddQuickFile causes the plug-in shortcut key Shift+F2 to be overwritten. Because no "Show All Templates" button in Add new file windows of the plug-in.

Try overwritte shortcut key Shift+F2 in vs options.