版本比较
如何舒爽的使用 CSSYZ 的机房电脑
正文
增加 131 行删除 37 行
49 行未改动50515253545455565758596061626364656566676869706971727374757675767778798079818283848586858788878990919293949596979895991001011021031041011021051061071081051091101111121131141111151161131171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591603 行未改动1641651661671311681691701341711721731371381741751761771431781791801451811821471481491501511831841851861871881891901911921931941951961971981992008 行未改动20921021121216821321421517121621721817417521922022122218022322422518222622718418518618718822822923023123223323423523623723823924024124224324419324524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628749 行未改动
- C/C++- Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code- Code Runner- Competitive Programming Helper (cph)- CPH-NG- Error Lens- Markdown All in One- Markdown PDF- Microsoft Edge Tools for VS Code- One Dark Pro- vscode-pdf- Zip & Archive Viewer- vscode-icons- vscode-luogu- [GCC](https://winlibs.com/) 【选择 Release versions 中标有 LATEST 的 win64 版本的 zip 包】
运行以下命令安装拓展(C++ 和中文请手动)安装拓展(C++ 和中文请手动)
::::info[$\text{bash for yz}$]```bash$newPaths = @("C:\mingw64\bin", "C:\Microsoft VS Code\bin")$currentPath = [Environment]::GetEnvironmentVariable("Path", "Machine")$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")foreach ($p in $newPaths) { if (($currentPath -split ';' | Where-Object { $_.TrimEnd('\') -ieq $p.TrimEnd('\') }) -eq $null) { $currentPath += ";$p" }}[Environment]::SetEnvironmentVariable("Path", $currentPath, "Machine")$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine")[Environment]::SetEnvironmentVariable("Path", $currentPath, "User")$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")$plugins = @("formulahendry.code-runner","DivyanshuAgrawal.competitive-programming-helper","langningchen.cph-ng","usernamehw.errorlens","yzhang.markdown-all-in-one","yzane.markdown-pdf","ms-edgedevtools.vscode-edge-devtools","zhuangtongfa.material-theme","tomoki1207.vscode-pdf","tomoki1207.pdf","Takeshi-Fuchi.zip-viewer-fuchi","vscode-icons-team.vscode-icons""vscode-icons-team.vscode-icons","shalldie.background","yltx.vscode-luogu"); foreach ($p in $plugins) { code --install-extension $p --force }```::::
::::info[$\text{bash for yzyl}$]```bash$newPaths = @("D:\mingw64\bin", "D:\Microsoft VS Code\bin")$currentPath = [Environment]::GetEnvironmentVariable("Path", "Machine")$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")foreach ($p in $newPaths) { if (($currentPath -split ';' | Where-Object { $_.TrimEnd('\') -ieq $p.TrimEnd('\') }) -eq $null) { $currentPath += ";$p" }}[Environment]::SetEnvironmentVariable("Path", $currentPath, "Machine")$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine")[Environment]::SetEnvironmentVariable("Path", $currentPath, "User")$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")$plugins = @("formulahendry.code-runner","DivyanshuAgrawal.competitive-programming-helper","langningchen.cph-ng","usernamehw.errorlens","yzhang.markdown-all-in-one","yzane.markdown-pdf","ms-edgedevtools.vscode-edge-devtools","zhuangtongfa.material-theme","tomoki1207.vscode-pdf","tomoki1207.pdf","Takeshi-Fuchi.zip-viewer-fuchi","vscode-icons-team.vscode-icons""vscode-icons-team.vscode-icons","shalldie.background","yltx.vscode-luogu"); foreach ($p in $plugins) { code --install-extension $p --force }```::::
::::info[$\text{bash for NOI Linux}$]```bashCODE_CMD="code"if ! command -v "$CODE_CMD" &> /dev/null; then if [ -x "/usr/share/code/bin/code" ]; then CODE_CMD="/usr/share/code/bin/code" else echo "未找到 code 命令,请确认 VS Code 已安装并加入 PATH。" exit 1 fifiplugins=("formulahendry.code-runner""langningchen.cph-ng""usernamehw.errorlens""yzhang.markdown-all-in-one""yzane.markdown-pdf""ms-edgedevtools.vscode-edge-devtools""zhuangtongfa.material-theme""tomoki1207.pdf""Takeshi-Fuchi.zip-viewer-fuchi""vscode-icons-team.vscode-icons""shalldie.background""yltx.vscode-luogu")for p in "${plugins[@]}"; do "$CODE_CMD" --install-extension "$p" --forcedone```::::
setting.json(Ctrl+Shift+P `Open User Settings (JSON)`)
::::info[$\text{settings for yz}$]```json{ "workbench.startupEditor": "none",3 行未改动 "debug.onTaskErrors": "debugAnyway", "explorer.confirmDelete": false, "workbench.colorTheme": "One Dark Pro", "code-runner.executorMap": { "cpp": "g++ $fileName -o $fileNameWithoutExt -std=c++14 -O2 -static && .\\$fileNameWithoutExt" "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -Wall -Wno-unused-result -std=c++14 -O2 -static && .\\$fileNameWithoutExt" }, "code-runner.saveFileBeforeRun": true, "code-runner.fileDirectoryAsCwd": true, "code-runner.fileDirectoryAsCwd": false, "code-runner.ignoreSelection": true, "code-runner.runInTerminal": true, "cph.language.cpp.Args": "-std=c++14 -O2 -static", "cph.general.autoShowJudge": false, "zipViewer.previewLineCount": 1000, "workbench.editorAssociations": { "*.md": "default", "*.html": "workbench.editor.browser", "*.zip": "zipViewer.viewer" "*.zip": "zipViewer.viewer", "*.pdf": "pdf.preview" }, "markdown-pdf.executablePath": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe", "markdown-pdf.executablePath": "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe", "markdown-pdf.displayHeaderFooter": false, "cph.general.useShortAtCoderName": true, "cph.general.useShortCodeForcesName": true, "cph.general.useShortLuoguName": true, "cph.general.timeOut": 1000, "workbench.iconTheme": "vscode-icons" "workbench.iconTheme": "vscode-icons", "terminal.integrated.initialHint": false, "terminal.integrated.enableMultiLinePasteWarning": "never", "cph-ng.languages.cppCompiler": "C:/mingw64/bin/g++.exe", "cph-ng.languages.cppCompilerArgs": "-Wall -Wno-unused-result -O2 -std=c++14 -static", "cph-ng.sidebar.showOobe": false, "editor.minimap.enabled": false, "background.enabled": true, "background.fullscreen": { "images": ["file:///C:/picture.png"], "opacity": 0.1, "size": "cover", "position": "center" }}```::::
8 行未改动 "debug.onTaskErrors": "debugAnyway", "explorer.confirmDelete": false, "workbench.colorTheme": "One Dark Pro", "code-runner.executorMap": { "cpp": "g++ $fileName -o $fileNameWithoutExt -std=c++14 -O2 -static && .\\$fileNameWithoutExt" "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -Wall -Wno-unused-result -std=c++14 -O2 -static && .\\$fileNameWithoutExt" }, "code-runner.saveFileBeforeRun": true, "code-runner.fileDirectoryAsCwd": true, "code-runner.fileDirectoryAsCwd": false, "code-runner.ignoreSelection": true, "code-runner.runInTerminal": true, "cph.language.cpp.Args": "-std=c++14 -O2 -static", "cph.general.autoShowJudge": false, "zipViewer.previewLineCount": 1000, "workbench.editorAssociations": { "*.md": "default", "*.html": "workbench.editor.browser", "*.zip": "zipViewer.viewer" "*.zip": "zipViewer.viewer", "*.pdf": "pdf.preview" }, "markdown-pdf.executablePath": "D:\\Microsoft\\Edge\\Application\\msedge.exe", "markdown-pdf.executablePath": "D:\\Microsoft\\Edge\\Application\\msedge.exe", "markdown-pdf.displayHeaderFooter": false, "cph.general.useShortAtCoderName": true, "cph.general.useShortCodeForcesName": true, "cph.general.useShortLuoguName": true, "cph.general.timeOut": 1000, "workbench.iconTheme": "vscode-icons" "cph-ng.languages.cppCompiler": "D:/mingw64/bin/g++.exe", "cph-ng.languages.cppCompilerArgs": "-Wall -Wno-unused-result -O2 -std=c++14 -static", "cph-ng.sidebar.showOobe": false, "workbench.iconTheme": "vscode-icons", "terminal.integrated.initialHint": false, "editor.minimap.enabled": false, "background.enabled": true, "background.fullscreen": { "images": ["file:///D:/pictures/picture.png"], "opacity": 0.1, "size": "cover", "position": "center" }}```::::
然后请重启 VS Code::::info[$\text{settings for NOI Linux}$]```json{ "workbench.startupEditor": "none", "editor.mouseWheelZoom": true, "workbench.editor.empty.hint": "hidden", "C_Cpp.default.compilerPath": "/usr/bin/g++", "debug.onTaskErrors": "debugAnyway", "explorer.confirmDelete": false, "workbench.colorTheme": "One Dark Pro", "code-runner.executorMap": { "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -Wall -Wno-unused-result -std=c++14 -O2 -static && ./$fileNameWithoutExt" }, "code-runner.saveFileBeforeRun": true, "code-runner.fileDirectoryAsCwd": false, "code-runner.ignoreSelection": true, "code-runner.runInTerminal": true, "zipViewer.previewLineCount": 1000, "workbench.editorAssociations": { "*.md": "default", "*.html": "workbench.editor.browser", "*.zip": "zipViewer.viewer", "*.pdf": "pdf.preview" }, "markdown-pdf.executablePath": "/usr/bin/microsoft-edge", "markdown-pdf.displayHeaderFooter": false, "workbench.iconTheme": "vscode-icons", "terminal.integrated.initialHint": false, "terminal.integrated.enableMultiLinePasteWarning": "never", "cph-ng.languages.cppCompiler": "/usr/bin/g++", "cph-ng.languages.cppCompilerArgs": "-Wall -Wno-unused-result -O2 -std=c++14 -static", "cph-ng.sidebar.showOobe": false, "editor.minimap.enabled": false, "background.enabled": true, "background.fullscreen": { "images": ["file:///home/oier/pictures/picture.png"], "opacity": 0.1, "size": "cover", "position": "center" }}```::::