AddAnyFile icon indicating copy to clipboard operation
AddAnyFile copied to clipboard

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

Open IceFox99 opened this issue 3 years ago • 1 comments

Installed product version

  • Visual Studio Community 2022 Version 17.0.6
  • This extension: 4.1.8

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.

IceFox99 avatar Feb 10 '22 13:02 IceFox99

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

nitz avatar Mar 20 '22 15:03 nitz