保存进度

This commit is contained in:
2026-07-14 23:20:12 +08:00
commit 79c836426c
14 changed files with 510 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"D:\\develop\\sdk\\cpp\\boost\\build\\boost_1_89_0_msvc2022\\include\\boost-1_89"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.26100.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
+73
View File
@@ -0,0 +1,73 @@
/**
* This file is generated by VSCode extension: Fileheader Pro
*/
/**
* These comments can help you write your own template with type hint
* @typedef {Object} FileheaderVariable Fileheader variables
* @property {string} birthtime file birth time. will get it from VCS or fallback to filesystem when it is not available
* @property {string} mtime file modification time. will get it from VCS or fallback to filesystem when it is not available
* @property {string} authorName if the file is tracked by VCS, it will get the author name from VCS. else it will get it from current user name
* @property {string} authorEmail if the file is tracked by VCS, it will get the author email from VCS. else it will get it from current user email
* @property {string} userName else it will get it from current user name
* @property {string} userEmail user email is from VSCode config, and fallback to VCS config
* @property {string} companyName
* @property {string} projectName name of current project
* @property {string} filePath the file path, relative to project root with POSIX path separator
* @property {string} dirPath the directory path, relative to project root with POSIX path separator
* @property {string} fileName filename with extension
*/
/**
* @typedef {string | number | null | undefined | Template | boolean} TemplateInterpolation NOTE: boolean or falsy value will render empty string
*
* @typedef {{ strings: TemplateStringsArray; interpolations: TemplateInterpolation[]; }} Template
* @typedef {(strings: TemplateStringsArray, ...values: any[]) => string} ITemplateFunction
*
*/
/**
* Please confirm your provider extends from globalThis.FileheaderLanguageProvider
*/
class CustomLanguageProvider extends globalThis.FileheaderLanguageProvider {
/**
* @type {string[]}
*/
languages = [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
];
/**
* @type {string=} the language block comment start string.
* this is for future feature: support detect old custom template when custom template changes
*/
blockCommentStart = "/*";
/**
* @type {string=}
*/
blockCommentEnd = "*/";
/**
* get your template when document language matched
* @param {ITemplateFunction} tpl template function, it is a tagged function, support nested interpolation
* @param {FileheaderVariable} variables template variables
* @returns {Template}
*/
getTemplate(tpl, variables) {
// prettier-ignore
return tpl
`/*
* @author ${variables.authorName} <${variables.authorEmail}>
* @date ${variables.birthtime}
* @lastModified ${variables.mtime}
* Copyright © ${variables.companyName} All rights reserved
*/`;
}
}
// export your provider classes
module.exports = [CustomLanguageProvider];
+30
View File
@@ -0,0 +1,30 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "MSVC 调试 Boost 程序",
"type": "cppvsdbg",
"request": "launch",
// 编译输出的exe路径,根据你项目修改
"program": "${workspaceFolder}/out/bin/debug/main.exe",
"args": [], // 程序启动参数
"stopAtEntry": false, // 是否在main第一行自动断点
"cwd": "${workspaceFolder}", // 工作目录
"environment": [
// Boost库路径,运行时加载dll
{
"name": "PATH",
"value": "${workspaceFolder}/out/bin/debug;${env:PATH};D:/develop/sdk/cpp/boost/build/boost_1_89_0_msvc2022/lib"
}
],
"externalConsole": false, // true弹出黑窗口,false内置终端
"symbolSearchPath": "${workspaceFolder}/stage/lib/x64-msvc-14.3/debug",
"logging": {
"moduleLoad": false
}
}
]
}
+43
View File
@@ -0,0 +1,43 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "msvc2022 调试编译",
"command": "cl.exe",
"args": [
"/Zi",
"/EHsc",
"/nologo",
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
"${file}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [ // 错误信息匹配器,有$msCompiler、$gcc 选项
"$msCompile" // 使用msvc编辑器的匹配器,
],
"group": {
"kind": "build",
"isDefault": false,
},
"detail": "编译器: cl.exe"
},
{
"type":"cppbuild",
"label": "msvc2022 生产编译",
"command": "cl.exe",
"args": [
"/EHsc",
"/nologo",
"/Fe${fileDirname}\\${fileBasenameNoExtension}.exe",
"${file}"
],
"options": {
"cwd": "${fileDirname}"
}
}
]
}