Блог пользователя joe69

Автор joe69, история, 5 лет назад, По-английски

I recently installed VS code for competitive coding But could not find any good tutorials for setting up VSCode.I was hoping You guys could help me setting up VS Code for compettive coding like What extensions to download and so on.Thanks

  • Проголосовать: нравится
  • +7
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 3   Проголосовать: нравится +16 Проголосовать: не нравится
  • Well first you'll have to install an intellisense plugin on vscode for your specific language. Make sure you have a compiler/interpreter for your language.
  • Install coderunner for quickly compiling and running code.
  • press ctrl+shift+p and go to configure user snippets. here you can generate a snippet that gets triggered by a command. This can be used since you'll have to use your code templates for every program. it reduces the task of copying and pasting. you can generate snippet code from https://snippet-generator.app/
  • If you'd like to use my vscode settings. i'll attach it here, you can press ctrl+shift+p and go to settings.json and paste it in there.

{ "breadcrumbs.enabled": false, "C_Cpp.clang_format_path": "/usr/bin/clang-format", "C_Cpp.default.cppStandard": "c++17", "C_Cpp.default.cStandard": "c11", "C_Cpp.default.intelliSenseMode": "clang-x64", "C_Cpp.intelliSenseCacheSize": 0, "C_Cpp.updateChannel": "Insiders", "code-runner.customCommand": "cd $dir && cf-test $fileName", "code-runner.executorMap": { "c": "cd $dir && gcc -g -static -std=gnu11 -lm -Wfatal-errors $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt", "cpp": "cd $dir && g++ -static -Wall -Wextra -Wno-unknown-pragmas -pedantic -O2 -Wshadow -Wformat=2 -Wfloat-equal -Wlogical-op -Wcast-qual -Wcast-align -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_FORTIFY_SOURCE=2 -fstack-protector $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt", "python": "cd $dir && py $fileName" }, "code-runner.runInTerminal": true, "code-runner.saveFileBeforeRun": true, "editor.acceptSuggestionOnCommitCharacter": false, "editor.acceptSuggestionOnEnter": "on", "editor.autoClosingBrackets": "never", "editor.autoClosingQuotes": "never", "editor.autoIndent": true, "editor.find.autoFindInSelection": true, "editor.minimap.enabled": false, "editor.wordWrap": "wordWrapColumn", "editor.wordWrapColumn": 120, "explorer.autoReveal": false, "explorer.confirmDelete": false, "explorer.confirmDragAndDrop": false, "python.formatting.provider": "yapf", "python.linting.enabled": true, "python.linting.flake8Enabled": true, "python.linting.pylintEnabled": false, "terminal.integrated.rendererType": "dom", "vsicons.dontShowNewVersionMessage": true, "window.menuBarVisibility": "hidden", "window.titleBarStyle": "native", "workbench.editor.enablePreview": false, "workbench.editor.highlightModifiedTabs": true, "workbench.panel.defaultLocation": "right", "go.formatTool": "goimports", "go.useLanguageServer": true, "window.zoomLevel": -0.28, "git.autofetch": true, "workbench.colorTheme": "Material Theme Darker High Contrast", "workbench.iconTheme": "material-icon-theme" }
»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +3 Проголосовать: не нравится

Anyone else who uses VScode have some tips ??

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Can anyone tell me about the best extensions for competitive programming on VScode