Skip to content

Instantly share code, notes, and snippets.

@Albert26193
Albert26193 / vsc-semantic.json
Created November 13, 2025 07:55
semantic vscode
// "editor.semanticTokenColorCustomizations": {
// "[*]": { // 针对某个主题,可改为 "[*]" 以全局生效
// "enabled": true,
// "rules": {
// /* ---------- 基础类型 ---------- */
// "type": "#FFD700", // 类、结构体、联合体、枚举
// "typeParameter": "#FF79C6", // 模板形参,如 template<typename T>
// "typedef": "#00FFFF", // typedef / using 别名
// "namespace": "#8A2BE2", // 命名空间
// "enum": "#FFA500", // 枚举类型
@Albert26193
Albert26193 / shortcut.20250926.json
Created September 26, 2025 15:06
shortcut.20250926.json
[
// ----------------------------------------
// search editor
// ----------------------------------------
{
"key": "cmd+j",
"command": "search.focus.nextInputBox",
"when": "inSearchEditor && inputBoxFocus || inputBoxFocus && searchViewletVisible"
},
{
@Albert26193
Albert26193 / vscode.20250926.json
Created September 26, 2025 15:04
vscode.20250926.json
{
/**********************************/
/*********** Languages ************/
/**********************************/
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format",
"editor.formatOnSaveMode": "modifications",
@Albert26193
Albert26193 / cusor.20250701.settings.json
Last active July 3, 2025 02:24
cusor.20250701.settings.json
{
/**********************************/
/************* C_Cpp **************/
/**********************************/
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.intelliSenseEngine": "disabled",
/**********************************/
/*********** augment **************/
/**********************************/
"augment.nextEdit.enableBackgroundSuggestions": false,
@Albert26193
Albert26193 / cusor.20250701.json
Created July 1, 2025 07:31
cursor.setting.json-20250701
{
/**********************************/
/************* C_Cpp **************/
/**********************************/
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.intelliSenseEngine": "disabled",
/**********************************/
/********* Prettier-SQL ***********/
/**********************************/
"Prettier-SQL.commaPosition": "after",
@Albert26193
Albert26193 / tmux.conf
Created July 1, 2025 07:30
tmux.conf.20250701
# ===================================
# ======= General Settings ==========
# ===================================
# Terminal settings
set-option -g default-terminal "xterm-256color"
set-option -as terminal-overrides ",xterm-256color:Tc"
# History and exit behavior
set -g history-limit 1000000
set -g remain-on-exit off
@Albert26193
Albert26193 / starship.toml
Created June 30, 2025 08:02
starship.toml(for docker)
format = '''
[┌───────────────────>](bold green)
$all'''
[hostname]
ssh_only = false
disabled = false
style="green"
ssh_symbol='🚀'
format = '[$ssh_symbol](bold blue) pod-3 '
@Albert26193
Albert26193 / cursor-keybinding-20250624.json
Created June 24, 2025 15:57
cursor-keybinding-20250624.json
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+i",
"command": "-workbench.action.chat.stopListeningAndSubmit",
"when": "inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inChatInput && voiceChatInProgress && scopedVoiceChatInProgress == 'view' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'editor' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'inline' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'quick' || inlineChatFocused && voiceChatInProgress && scopedVoiceChatInProgress == 'view'"
},
{
"key": "cmd+i",
"command": "-workbench.action.chat.startVoiceChat",
@Albert26193
Albert26193 / cursor-settings-20250624.json
Created June 24, 2025 15:56
cursor-settings-20250624.json
{
/**********************************/
/************* C_Cpp **************/
/**********************************/
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.intelliSenseEngine": "disabled",
/**********************************/
/********* Prettier-SQL ***********/
/**********************************/
"Prettier-SQL.commaPosition": "after",
@Albert26193
Albert26193 / cursor-settings-20250607.json
Created June 7, 2025 10:49
cursor-settings-20250607.json
{
/**********************************/
/************* C_Cpp **************/
/**********************************/
"C_Cpp.errorSquiggles": "enabled",
"C_Cpp.intelliSenseEngine": "disabled",
/**********************************/
/********* Prettier-SQL ***********/
/**********************************/
"Prettier-SQL.commaPosition": "after",