跳到正文

剪贴板

剪贴板 6zyh8lnf

原文
剪贴板信息

剪贴板信息

收录
更新

VScode settings

JavaScript
// settings.json
{
    // "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
    // "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
    "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
    "[yaml]": { "editor.tabSize": 4 },
    "C_Cpp.autoAddFileAssociations": false,
    "code-runner.executorMap": {
        "cpp": "g++ $fileName -o $fileNameWithoutExt.exe -std=c++14 -Wall -Wextra -O2 -Wl,--stack=2147483647 -march=native && ./$fileNameWithoutExt.exe"
    },
    "code-runner.fileDirectoryAsCwd": true,
    "code-runner.ignoreSelection": true,
    "code-runner.runInTerminal": true,
    "cph.general.autoShowJudge": false,
    "cph.language.cpp.Args": "-std=c++14 -O2 -Wl,--stack=2147483647 -march=native",
    "cph.language.cpp.Command": "g++",
    "editor.bracketPairColorization.enabled": false,
    "editor.cursorBlinking": "smooth",
    "editor.cursorSmoothCaretAnimation": "on",
    "editor.cursorStyle": "block",
    "editor.fontFamily": "'Fira Code', 'Noto Sans CJK SC'",
    "editor.fontLigatures": "'cv01' on, 'cv02' on, 'ss09' on, 'zero' on",
    "editor.minimap.renderCharacters": false,
    "editor.minimap.scale": 2,
    "editor.rulers": [100],
    "editor.stickyScroll.enabled": false,
    "editor.wordWrap": "on",
    "explorer.autoReveal": false,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "explorer.confirmPasteNative": false,
    "files.associations": { "*.{in,out,ans}": "plaintext", ".clang*": "yaml" },
    "files.autoGuessEncoding": true,
    "markdown.preview.fontFamily": "'Noto Sans CJK SC'",
    "prettier.printWidth": 100,
    "prettier.tabWidth": 4,
    "search.followSymlinks": false,
    "terminal.integrated.defaultProfile.windows": "Git Bash",
    // "terminal.integrated.enableMultiLinePasteWarning": "never",
    "terminal.integrated.fontFamily": "'Fira Code', 'Noto Sans CJK SC'",
    "terminal.integrated.letterSpacing": 1,
    "workbench.colorTheme": "One Dark Pro Mix",
    "workbench.editor.pinnedTabSizing": "compact",
    "workbench.iconTheme": "vscode-icons",
    "workbench.productIconTheme": "fluent-icons",
    "workbench.tree.enableStickyScroll": false,
    "workbench.tree.indent": 20,
    "workbench.editorAssociations": {
        "{git,gitlens}:/**/*.{md,csv,svg}": "default"
    },
    "cph.general.defaultLanguage": "cpp",
    //"cph.general.defaultLanguageTemplateFileLocation": "D:\\JKY\\muban.cpp",    // 这是你的模板文件路径
    "cph.general.firstTime": false,
    "animations.Install-Method": "Apc Customize UI++",
    "apc.imports": [
        "file:///c:/Users/lenovo/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.3/dist/updateHandler.js"
    ]
}

C++ Snippets

JavaScript
{
	"Head file": {
		"prefix": "incl",
		"body": [
		  	"#include<bits/stdc++.h>",
			"using namespace std;",
			"using ll=long long;",
			"using db=double;",
			"using pii=pair<int,int>;",
			"using vi=vector<int>;",
			"#define eb emplace_back",
			"#define unm unordered_map",
			"#define pq priority_queue",
			"#define ls p<<1",
			"#define rs p<<1|1",
			"#define fi first",
			"#define se second",
			"#define endl '\\n'",
			"#define fin(a) freopen(#a\"\",\"r\",stdin)",
			"#define fout(a) freopen(#a\"\",\"w\",stdout)",
			"const int N=2e5+10,mod=998244353;",
			"",
			"signed main(){",
			"    cin.tie(nullptr)->sync_with_stdio(false);",
			"    ",
			"    return 0;",
			"}"
		],
		"description": ""
	},
	"Fast IO": {
		"prefix": "read",
		"body": [
		  "namespace IO{",
		  "    char buf[1<<20],*p1,*p2;",
		  "    #define getchar() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<20,stdin),p1==p2)?0:*p1++)",
		  "    template<typename T> inline static void read(T &x){x=0;int f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-') f=-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=(x*10)+(ch^48);ch=getchar();}if(f==-1) x=-x;}",
		  "    template<typename T,typename ...Args> inline static void read(T& x,Args& ...args){read(x);read(args...);}",
		  "    template<typename T> inline static void write(char c,T x){T p=x;if(!p) putchar('0');if(p<0){putchar('-');p=-p;}int cnt[105],tot=0;while(p){cnt[++tot]=p%10;p/=10;}for(int i=tot;i>=1;i--){putchar(cnt[i]+'0');}putchar(c);}",
		  "    template<typename T,typename ...Args> inline static void write(const char c,T x,Args ...args){write(c,x);write(c,args...);}",
		  "}using namespace IO;"
		],
		"description": ""
	},
}