vs2013工程下的各个文件和文件夹的作用

时间:2021-10-23 12:28:13

1 ipch文件夹

用来加速编译,里面存放的是precompiled headers,即预编译好了的头文件。

头文件也是需要编译的,比如需要处理#ifdef,需要替换宏以及需要include其它头文件。

将一些常用的但是不经常修改的头文件编译好放在一个文件中,后面的编译就直接用这个头文件而不用重新编译。

2 sdf文件和opensdf文件

sdf文件是vs用于intellisense的。

https://msdn.microsoft.com/zh-cn/library/hcw1s69b.aspx

2.1 list class members

鼠标放在某个class上,会自动显示这个class有哪些members。

2.2 显示某个函数的完整参数信息,这样方便自己编码

2.3 自动完成单词

3 sln文件

解决方案文件。

4 suo文件

https://shemeerns.com/2014/04/04/the-solution-user-options-suo-file-in-visual-studio/

What is Solution User Options (.suo) file

The solution user options (.suo) file is a structured storage, or compound, file stored in a binary format. This file is used to store user preference settings, and is created automatically when Visual Studio saves a solution.

Location of .suo file

The .suo file will be saved in the folder where your Solution (.sln) file exists. You might wanted to set true for “Show Hidden Files and Folder” in “Folder Options” as .suo file is default by hidden.

What informations are saved in my .suo file

This file is used by Visual Studio to store user/solution specific information such as Opened Files, Expanded Nodes in the Solution Explorer, Opened Tool Windows and its Positions, User Tasks, Breakpoints, Start-up Project, Contents of Watch window, Whether the project is loaded/unloaded  etc. The same file is used by Visual Studio Addins (VSPackages) to persist information that are specific to that solution/user.

.suo file and Source Control

Adding user specific information to source control is not a good idea. Most of the code versioning control ignores .suo file by default. If included, the developer, who checks out the latest .suo file, will loose all his personal settings which is stored in the local .suo file.

Visual Studio performance and .suo file

If the size of .suo file is too large then it can affect the performance of Visual Studio. Deleting the .suo file will boost the performance.

Deleting .suo file

Visual Studio creates a new file with the .suo file extension as soon as you open again the solution. But once the file with the .suo file extension is deleted, any of your existing solution user-specific settings will be lost.