Last active
November 5, 2021 01:40
.editorconfig + C++ starter kit (Windows + Visual Studio 2019 + CMake)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
tab_width = 8 | |
[*.{py,rs}] | |
indent_size = 4 | |
[{Makefile,*.{go,mk}}] | |
indent_style = tab | |
[*.md] | |
trim_trailing_whitespace = false | |
[*.{manifest,vcxproj,sln}] | |
charset = utf-8-bom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.13) | |
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>") | |
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") | |
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>") | |
set(CMAKE_CXX_STANDARD 17) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
project(foobar CXX) | |
add_executable(foobar foobar.cpp utf-8.exe.manifest) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gibo dump Windows macOS Linux C++ CMake VisualStudio VisualStudioCode Vim Emacs | Out-File -Encoding utf8NoBOM .gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<application> | |
<windowsSettings> | |
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage> | |
</windowsSettings> | |
</application> | |
</assembly> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment