본문 바로가기
Visual Studio 설정

ipch 디렉토리와 .sdf 파일 위치 바꾸기

by 건실한청년 2020. 5. 13.

링크 주소: http://codenongsa.egloos.com/235878

 

ipch 디렉토리와 .sdf 파일 위치 바꾸기

비주얼 스튜디오 2010을 사용하면 sdf 파일과 ipch라는 디렉토리가 생기게 되는데 기존의 .ncb 파일을 대치하는 인텔리센스와 관련된 파일이다.When you open the solution for the first time in Visual C++ Express the

codenongsa.egloos.com

 

비주얼 스튜디오 2010을 사용하면 sdf 파일과 ipch라는 디렉토리가 생기게 되는데 기존의 .ncb 파일을 대치하는 인텔리센스와 관련된 파일이다.

When you open the solution for the first time in Visual C++ Express the environment will parse the source files and generate the code browser database, the .sdf file, and a folder called ipch which contains the IntelliSense pre-compiled header files that are used to provide IntelliSense information as the developer types code. This means that if you intend to distribute the solution, the absolute minimum collection of files that you should include are the code and resource files, the .sln file, and the project files .vcxproj and .vcxproj.filters, all the other files will be generated by Visual C++ if they do not exist.
http://msdn.microsoft.com/en-us/library/ff795784.aspx

인텔리센스를 위해 각 솔루션 위치마다 ipch 디렉토리와 .sdf 파일이 생기게 되는데, 맘에 들지 않는다면 이 파일들이 위치할 디렉토리를 정해줄 수가 있다.
http://wronso.com/blog/553/why-does-visual-studio-2010-create-ipch-folder-and-sdf-file.html

“Tools > Options”, choose “Text Editor > C/C++ > Advanced”, scroll down until “Fallback Location” appears. Make “Always use Fallback Location” and “Do Not Warn if Fallback Location” to be “True”, and choose a “Fallback Location” you like.

 

이렇게 지정해주면 인텔리센스 관련된 파일은 지정해둔 fallback 디렉토리에 생성되게 된다.

 

 

도구->옵션->텍스트편집기->C/C++->고급->대체(fallback) 위치

항상 대체(fallback) 위치 사용 False -> True

대체(fallback) 위치 사용 시 경고 False -> True

대체(fallback) 위치  _blank -> "E:\Temp\VS2017" 변경