Visual Studio 기본 설정
Table of contents
Visual Studio 빌드 옵션
winapi xxxxxA()함수들 utf8로 설정하기
#if 0
//-----------------------------------------------------------------------
MessageBoxA(nullptr, (LPCSTR)u8"가나다라", (LPCSTR)u8"제목", MB_OK);
/*
아래 적용하면 vld에서 오류가 발생함.
https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF - 8 </activeCodePage>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
*/
#endif
소스 파일 경로에 따라서 obj 파일 생성 하기
구성 속성/
C/C++/
출력 파일/
개체 파일 이름: $(IntDir)
에서
개체 파일 이름: $(IntDir)%(RelativeDir)
으로
유용한 Visual Studio 오픈 소스 라이브러리
Visual Leak Detector
#if 0
#ifdef _DEBUG
#include "../vld/include/vld.h"
// 추가 라이브러리 디렉토리:
// $(ProjectDir)\vld\lib\Win64;%(AdditionalLibraryDirectories)
#endif // _DEBUG
#endif
유용한 Visual Studio Plugin
vcpkg
- https://vcpkg.io/en/index.html
- https://vcpkg.io/en/packages
- https://learn.microsoft.com/ko-kr/vcpkg/
- https://github.com/microsoft/vcpkg/blob/b759049a36728d18260963799a56e6b19cb4a2ef/README_ko_KR.md
Code alignment for Visual Studio
Markdown Editor v2
OpenCppCoverage
- https://marketplace.visualstudio.com/items?itemName=OpenCppCoverage.OpenCppCoveragePlugin&ssr=false#review-details
- https://github.com/OpenCppCoverage/OpenCppCoveragePlugin/issues/48
- https://github.com/OpenCppCoverage/OpenCppCoveragePlugin/files/7818401/VSPackage.zip
PVS - Studio
수정: 2024년 07월 17일