madskristensen / AddAnyFile

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

Added file is not included in c++ project automatically. #112

Open IceFox99 opened 2 years ago

IceFox99 commented 2 years ago

Installed product version

Description

Added file is not included in c++ project automatically.

Steps to reproduce

  1. Open a c++ project file in text editor.
  2. Press Shift + F2 to add a new file.

Expected behavior

You can see the added file in the solution explorer immediately, and this file is included in this project automatically.

Actual behavior

In the solution explorer, you can't see this file untill you Refresh the solution explorer. At the same time, it's not included in this project, so you have to right click the file and Include in project manually.

Supplement

This extension (VS 2019 version 3.5.160) works okay with every Visual Studio Community 2019 Version.

nitz commented 2 years ago

I just moved to VS2022 and am running into a similar issue to this as well. I actually get an error message after hitting add: "A file with the name x:\path\to\the\newfile.h already exists on disk."

VS Enterprise 2022 17.1.1 Extension 4.1.8 via marketplace