vscode常用配置

{
    "workbench.tree.indent": 24,
    "workbench.colorCustomizations": {
        "editorLineNumber.activeForeground": "#9e3c2da2",
        "editor.lineHighlightBorder":"#74423a77"
    },
    "editor.rulers": [
        {
            "column": 80,
            "color": "#fba414",
        },
        {
            "column": 120,
            "color": "#ee3f4d"
        }
    ],
    "workbench.startupEditor": "none",
    "editor.defaultFormatter": "charliermarsh.ruff",
    "git.openRepositoryInParentFolders": "never",
    "cmake.showOptionsMovedNotification": false,
    "[go]": {
        "editor.defaultFormatter": "golang.go"
    },
    "python.createEnvironment.trigger": "off",
    "update.showReleaseNotes": false,
    "editor.accessibilitySupport": "off",
    "files.exclude": {
        "**/__pycache__": true
    },
}

常用 python snippets:

	"source code file header": {
		"prefix": "fheader",
		"body": [
			"$BLOCK_COMMENT_START",
			"@fileName=$TM_FILENAME",
			"@author=xxx",
			"@contact=xxx@xxx.com",
			"@createTime=$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
			"@lastModifiedTime=$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
			"@description=$1",
			"@memo=$2",
			"$BLOCK_COMMENT_END",
			"",
			"$0",
		],
		"description": "source code meta info"
	},
	"main module block": {
		"prefix": "mainfc",
		"body": [
			"if __name__ == \"__main__\":",
			"    ${0:...}",
		],
		"description": "Log output to console"
	}

windows上将caps键映射为ctrl键(注销或重启生效):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

windows上关闭桌面上的“了解此图片”图标:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{2cc5ca98-6485-489a-920e-b3e88a6ccce3}"=dword:00000001
posted @ 2024-09-21 08:56  那个白熊  阅读(51)  评论(0)    收藏  举报