madskristensen / AddAnyFile

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

Mads: I reported this to MS VS Team but here is what I found. #143

Closed ghost closed 1 year ago

ghost commented 1 year ago

Add New File Feature in 17.5 does not work in VSIX Project!

Just create a VSIX extension project then try to use the new Add New File Feature. (Add, New Item) The Dialog with the new feature seen here does not exist in a VSIX extension project: AddNewItemDialog

So, you cannot add a new file using this method by just typing a file name and extension. You are limited to the original dialog and have to select a template.

chucker commented 1 year ago

Probably a duplicate of #135.

You probably want to reassign the shortcut: https://github.com/madskristensen/AddAnyFile/issues/135#issuecomment-1326282662 (VS itself steals the shortcut away from this extension).

ghost commented 1 year ago

Not using the shortcut, using the right click menu to select Add then new Item. Works in non-VSIX projects just fine but in VSIX projects you do not get the dialog above, but the old standard dialog and that dialog has no option to get to this dialog either. but in a non-VSIX this dialog shows by default and the old standard dialog has the option to return to this dialog.

ghost commented 1 year ago

OK, I removed the AddQuickFile shortcut SHIFT-F2, then I changed the AddQuickFile shortcut to CTRL-SHIFT-A and now it works even in the Right Click Menu. Strange behavior that the Right Click Menu requires the AddQuickFile shortcut be set to something else to work.