{
    // Legacy source files use CP949 (Korean Windows encoding, superset of EUC-KR).
    // VS Code defaults to UTF-8, which silently corrupts the Korean comment bytes
    // on save. Setting encoding to cp949 here preserves them exactly.
    "files.encoding": "cp949",

    // Let VS Code try to detect encoding per-file, falling back to cp949 above.
    "files.autoGuessEncoding": true,

    // Preserve the original Windows CRLF line endings (Git's * -text in
    // .gitattributes also prevents conversion, but this keeps VS Code consistent).
    "files.eol": "\r\n"
}
