当前位置:网站首页>New file / filter / folder in VS

New file / filter / folder in VS

2022-07-23 10:29:00 Turn X7

One . Create a new file in the project

Select a folder in the project –> Right click –> add to –> New item : Create a new file ;

Select a folder in the project –> Right click –> add to –> Existing items : Files already on disk are added to the project , Or excluded files are added ;

 Insert picture description here
Two . New filter

  newly build : Select an item or folder –> Right click –> add to –> New filter ;

purpose : Use VS When developing a project , Sometimes there are too many source files , Want to manage by function , You can use filters at this time (filter);

Be careful : The filter does not correspond to the real directory structure of the disk ;

 Insert picture description here

  After creating the filter , Project directory *.vcxproj.filters Files are used to record filters , This file cannot be deleted , Otherwise the filter will disappear .

 Insert picture description here

3、 ... and . New folder

  If we want to create a classification , Create a real folder under the project directory , Should be " New folder ";

First step : Display all files : project –> Display all files

 Insert picture description here

  The second step : New folder : project –> add to –> New folder

 Insert picture description here

  The above two classification management methods , Will not affect the operation of the program .

exclude : Exclude... From the project , Do not delete disk files ; ( Can pass " Add an existing item " Resume )

Delete : Remove... From the project , Include files on disk ; ( Only on the computer " The recycle bin " Recovery in )

原网站

版权声明
本文为[Turn X7]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207230353473126.html