Last active
July 22, 2024 02:52
-
-
Save khuldraeseth/1fc7a810f9e9914676f6d90cb62d5c62 to your computer and use it in GitHub Desktop.
A vscode profile for painless EECS 281 setup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"eecs281","settings":"{\"settings\":\"{\\n \\\"editor.emptySelectionClipboard\\\": false,\\n \\\"editor.formatOnSave\\\": true,\\n \\\"editor.inlayHints.enabled\\\": \\\"offUnlessPressed\\\",\\n \\\"editor.insertSpaces\\\": true,\\n \\\"files.associations\\\": {\\n \\\".clangd\\\": \\\"yaml\\\",\\n \\\".clang-format\\\": \\\"yaml\\\"\\n },\\n \\\"files.autoSave\\\": \\\"off\\\",\\n \\\"files.insertFinalNewline\\\": true,\\n \\\"lldb.launch.terminal\\\": \\\"integrated\\\",\\n \\\"lldb.dereferencePointers\\\": false,\\n \\\"[cpp]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"llvm-vs-code-extensions.vscode-clangd\\\",\\n \\\"editor.semanticHighlighting.enabled\\\": true\\n },\\n \\\"[c]\\\": {\\n \\\"editor.defaultFormatter\\\": \\\"llvm-vs-code-extensions.vscode-clangd\\\",\\n \\\"editor.semanticHighlighting.enabled\\\": true\\n }\\n}\\n\"}","tasks":"{\"tasks\":\"{\\n // See https://go.microsoft.com/fwlink/?LinkId=733558\\n // for the documentation about the tasks.json format\\n \\\"version\\\": \\\"2.0.0\\\",\\n \\\"tasks\\\": [\\n {\\n \\\"label\\\": \\\"setup\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"presentation\\\": {\\n \\\"echo\\\": false,\\n \\\"group\\\": \\\"eecs281-setup\\\",\\n \\\"panel\\\": \\\"shared\\\",\\n \\\"showReuseMessage\\\": false\\n },\\n \\\"dependsOn\\\": [\\n \\\"check os\\\",\\n \\\"check dependencies\\\",\\n \\\"do setup\\\"\\n ],\\n \\\"dependsOrder\\\": \\\"sequence\\\",\\n \\\"command\\\": \\\"echo 'Setup complete!'\\\"\\n },\\n {\\n \\\"label\\\": \\\"check os\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"presentation\\\": {\\n \\\"clear\\\": true,\\n \\\"echo\\\": false,\\n \\\"group\\\": \\\"eecs281-setup\\\",\\n \\\"panel\\\": \\\"shared\\\",\\n \\\"showReuseMessage\\\": false\\n },\\n \\\"windows\\\": {\\n \\\"command\\\": \\\"echo 'Error: Windows not supported' && false\\\"\\n },\\n \\\"osx\\\": {\\n \\\"command\\\": \\\"echo 'Detected macos' && true\\\"\\n },\\n \\\"linux\\\": {\\n \\\"command\\\": \\\"echo 'Detected Linux' && true\\\"\\n }\\n },\\n {\\n \\\"label\\\": \\\"check dependencies\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"presentation\\\": {\\n \\\"echo\\\": false,\\n \\\"group\\\": \\\"eecs281-setup\\\",\\n \\\"panel\\\": \\\"shared\\\",\\n \\\"showReuseMessage\\\": false\\n },\\n \\\"command\\\": \\\"command -V curl; command -V clangd\\\"\\n },\\n {\\n \\\"label\\\": \\\"do setup\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"dependsOn\\\": [\\n \\\"configure clang-format\\\",\\n \\\"configure clangd\\\"\\n ],\\n \\\"dependsOrder\\\": \\\"sequence\\\"\\n },\\n {\\n \\\"label\\\": \\\"configure clang-format\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"presentation\\\": {\\n \\\"echo\\\": false,\\n \\\"group\\\": \\\"eecs281-setup\\\",\\n \\\"panel\\\": \\\"shared\\\",\\n \\\"showReuseMessage\\\": false\\n },\\n \\\"command\\\": \\\"if [[ -f ${userHome}/.clang-format ]]; then echo 'existing clang-format config found, not overwriting'; else curl 'https://raw.githubusercontent.com/khuldraeseth/hosting/master/.clang-format' > ${HOME}/.clang-format; fi\\\"\\n },\\n {\\n \\\"label\\\": \\\"configure clangd\\\",\\n \\\"type\\\": \\\"shell\\\",\\n \\\"presentation\\\": {\\n \\\"echo\\\": false,\\n \\\"group\\\": \\\"eecs281-setup\\\",\\n \\\"panel\\\": \\\"shared\\\",\\n \\\"showReuseMessage\\\": false\\n },\\n \\\"linux\\\": {\\n \\\"options\\\": {\\n \\\"env\\\": {\\n \\\"CLANGD_CONFIG_DIR\\\": \\\"${userHome}${pathSeparator}.config${pathSeparator}clangd\\\"\\n }\\n }\\n },\\n \\\"osx\\\": {\\n \\\"options\\\": {\\n \\\"env\\\": {\\n \\\"CLANGD_CONFIG_DIR\\\": \\\"${userHome}${pathSeparator}Library${pathSeparator}Preferences${pathSeparator}clangd\\\"\\n }\\n }\\n },\\n \\\"windows\\\": {\\n \\\"options\\\": {\\n \\\"env\\\": {\\n \\\"CLANGD_CONFIG_DIR\\\": \\\"${LocalAppData}${pathSeparator}clangd\\\"\\n }\\n }\\n },\\n \\\"command\\\": \\\"mkdir -p ${CLANGD_CONFIG_DIR} && if [[ -f ${CLANGD_CONFIG_DIR}/config.yaml ]]; then echo 'existing clangd config found, not overwriting'; else curl 'https://raw.githubusercontent.com/khuldraeseth/hosting/master/config.yaml' > ${CLANGD_CONFIG_DIR}/config.yaml; fi\\\"\\n }\\n ]\\n}\\n\"}","extensions":"[{\"identifier\":{\"id\":\"llvm-vs-code-extensions.vscode-clangd\",\"uuid\":\"103154cb-b81d-4e1b-8281-c5f4fa563d37\"},\"displayName\":\"clangd\"},{\"identifier\":{\"id\":\"usernamehw.errorlens\",\"uuid\":\"9d8c32ab-354c-4daf-a9bf-20b633734435\"},\"displayName\":\"Error Lens\"},{\"identifier\":{\"id\":\"vadimcn.vscode-lldb\",\"uuid\":\"bee31e34-a44b-4a76-9ec2-e9fd1439a0f6\"},\"displayName\":\"CodeLLDB\"}]"} |
how are curl and clangd installed? what are the full extension names?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires
curl
andclangd
commands, so install those two tools before beginning.