Last active
December 11, 2018 17:45
-
-
Save Cannedfood/92f780cd3699a5362e03fc4995bc7e6f to your computer and use it in GitHub Desktop.
automatic update by http://atom.io/packages/sync-settings
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
# initialization file (not found) |
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
'atom-workspace': | |
'°': 'open-shell-active-directory:open-root' | |
'ctrl-shift-enter': 'open-shell-active-directory:open' | |
'ctrl-shift-e':'open-in-browser:open' | |
'shift-ctrl-t': 'terminal:open' | |
'f11': 'window:toggle-full-screen' | |
'atom-text-editor': | |
'f3': 'autocomplete-clang:go-declaration' | |
'ctrl-alt-c': 'color-picker:open' | |
'f12': 'autocomplete-clang:go-declaration' | |
"atom-text-editor[data-grammar='text xml']": | |
'shift-space': 'tag:close-tag' | |
'atom-editor': | |
'ctrl-home': 'atom-beautify:beautify-editor' | |
'ctrl-shift-C': 'editor:toggle-line-comments' | |
'ctrl-alt-B': 'atom-beautify:beautify-editor' |
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": "HexIt", | |
"version": "1.0.2" | |
}, | |
{ | |
"name": "about", | |
"version": "1.9.1" | |
}, | |
{ | |
"name": "archive-view", | |
"version": "0.65.1" | |
}, | |
{ | |
"name": "atom-beautify", | |
"version": "0.33.4" | |
}, | |
{ | |
"name": "atom-dark-syntax", | |
"version": "0.29.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-dark-ui", | |
"version": "0.53.3", | |
"theme": "ui" | |
}, | |
{ | |
"name": "atom-ide-debugger-native-gdb", | |
"version": "0.7.3" | |
}, | |
{ | |
"name": "atom-ide-ui", | |
"version": "0.13.0" | |
}, | |
{ | |
"name": "atom-light-syntax", | |
"version": "0.29.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-light-ui", | |
"version": "0.46.3", | |
"theme": "ui" | |
}, | |
{ | |
"name": "atom-material-ui", | |
"version": "2.1.3", | |
"theme": "ui" | |
}, | |
{ | |
"name": "atom-terminal", | |
"version": "0.8.0" | |
}, | |
{ | |
"name": "autocomplete-atom-api", | |
"version": "0.10.7" | |
}, | |
{ | |
"name": "autocomplete-clang", | |
"version": "0.11.5" | |
}, | |
{ | |
"name": "autocomplete-css", | |
"version": "0.17.5" | |
}, | |
{ | |
"name": "autocomplete-html", | |
"version": "0.8.7" | |
}, | |
{ | |
"name": "autocomplete-html-entities", | |
"version": "0.2.0" | |
}, | |
{ | |
"name": "autocomplete-plus", | |
"version": "2.41.0" | |
}, | |
{ | |
"name": "autocomplete-snippets", | |
"version": "1.12.0" | |
}, | |
{ | |
"name": "autoflow", | |
"version": "0.29.4" | |
}, | |
{ | |
"name": "autosave", | |
"version": "0.24.6" | |
}, | |
{ | |
"name": "background-tips", | |
"version": "0.28.0" | |
}, | |
{ | |
"name": "base16-tomorrow-dark-theme", | |
"version": "1.6.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "base16-tomorrow-light-theme", | |
"version": "1.6.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "bookmarks", | |
"version": "0.45.1" | |
}, | |
{ | |
"name": "bracket-matcher", | |
"version": "0.89.4" | |
}, | |
{ | |
"name": "build", | |
"version": "0.70.0" | |
}, | |
{ | |
"name": "build-make", | |
"version": "0.13.0" | |
}, | |
{ | |
"name": "busy-signal", | |
"version": "1.4.3" | |
}, | |
{ | |
"name": "collapse-then-reveal", | |
"version": "2.0.4" | |
}, | |
{ | |
"name": "color-picker", | |
"version": "2.3.0" | |
}, | |
{ | |
"name": "command-palette", | |
"version": "0.43.5" | |
}, | |
{ | |
"name": "dalek", | |
"version": "0.2.2" | |
}, | |
{ | |
"name": "deprecation-cop", | |
"version": "0.56.9" | |
}, | |
{ | |
"name": "dev-live-reload", | |
"version": "0.48.1" | |
}, | |
{ | |
"name": "doxygen-snippets", | |
"version": "0.1.1" | |
}, | |
{ | |
"name": "enable-packages", | |
"version": "1.3.0" | |
}, | |
{ | |
"name": "encoding-selector", | |
"version": "0.23.9" | |
}, | |
{ | |
"name": "exception-reporting", | |
"version": "0.43.1" | |
}, | |
{ | |
"name": "find-and-replace", | |
"version": "0.215.14" | |
}, | |
{ | |
"name": "fuzzy-finder", | |
"version": "1.8.2" | |
}, | |
{ | |
"name": "git-diff", | |
"version": "1.3.9" | |
}, | |
{ | |
"name": "github", | |
"version": "0.20.2" | |
}, | |
{ | |
"name": "go-to-line", | |
"version": "0.33.0" | |
}, | |
{ | |
"name": "grammar-selector", | |
"version": "0.50.1" | |
}, | |
{ | |
"name": "grammar-token-limit", | |
"version": "0.1.1" | |
}, | |
{ | |
"name": "gruvbox-plus-syntax", | |
"version": "1.3.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "hidpi", | |
"version": "0.14.0" | |
}, | |
{ | |
"name": "ide-cpp", | |
"version": "0.0.3" | |
}, | |
{ | |
"name": "ide-html", | |
"version": "0.4.3" | |
}, | |
{ | |
"name": "ide-json", | |
"version": "0.2.1" | |
}, | |
{ | |
"name": "ide-python", | |
"version": "1.1.0" | |
}, | |
{ | |
"name": "image-view", | |
"version": "0.63.1" | |
}, | |
{ | |
"name": "incompatible-packages", | |
"version": "0.27.3" | |
}, | |
{ | |
"name": "intentions", | |
"version": "1.1.5" | |
}, | |
{ | |
"name": "keybinding-resolver", | |
"version": "0.38.4" | |
}, | |
{ | |
"name": "language-c", | |
"version": "0.60.13" | |
}, | |
{ | |
"name": "language-clojure", | |
"version": "0.22.7" | |
}, | |
{ | |
"name": "language-coffee-script", | |
"version": "0.49.3" | |
}, | |
{ | |
"name": "language-csharp", | |
"version": "1.1.0" | |
}, | |
{ | |
"name": "language-css", | |
"version": "0.43.0" | |
}, | |
{ | |
"name": "language-gfm", | |
"version": "0.90.5" | |
}, | |
{ | |
"name": "language-git", | |
"version": "0.19.1" | |
}, | |
{ | |
"name": "language-glsl", | |
"version": "2.0.4" | |
}, | |
{ | |
"name": "language-go", | |
"version": "0.46.6" | |
}, | |
{ | |
"name": "language-html", | |
"version": "0.51.5" | |
}, | |
{ | |
"name": "language-hyperlink", | |
"version": "0.16.3" | |
}, | |
{ | |
"name": "language-java", | |
"version": "0.30.0" | |
}, | |
{ | |
"name": "language-javascript", | |
"version": "0.129.17" | |
}, | |
{ | |
"name": "language-json", | |
"version": "0.19.2" | |
}, | |
{ | |
"name": "language-latex", | |
"version": "1.2.0" | |
}, | |
{ | |
"name": "language-less", | |
"version": "0.34.2" | |
}, | |
{ | |
"name": "language-lua", | |
"version": "0.9.11" | |
}, | |
{ | |
"name": "language-make", | |
"version": "0.22.3" | |
}, | |
{ | |
"name": "language-mustache", | |
"version": "0.14.5" | |
}, | |
{ | |
"name": "language-objective-c", | |
"version": "0.15.1" | |
}, | |
{ | |
"name": "language-perl", | |
"version": "0.38.1" | |
}, | |
{ | |
"name": "language-php", | |
"version": "0.44.0" | |
}, | |
{ | |
"name": "language-property-list", | |
"version": "0.9.1" | |
}, | |
{ | |
"name": "language-python", | |
"version": "0.51.8" | |
}, | |
{ | |
"name": "language-ruby", | |
"version": "0.72.14" | |
}, | |
{ | |
"name": "language-ruby-on-rails", | |
"version": "0.25.3" | |
}, | |
{ | |
"name": "language-sass", | |
"version": "0.62.0" | |
}, | |
{ | |
"name": "language-shellscript", | |
"version": "0.27.9" | |
}, | |
{ | |
"name": "language-source", | |
"version": "0.9.0" | |
}, | |
{ | |
"name": "language-sql", | |
"version": "0.25.10" | |
}, | |
{ | |
"name": "language-text", | |
"version": "0.7.4" | |
}, | |
{ | |
"name": "language-todo", | |
"version": "0.29.4" | |
}, | |
{ | |
"name": "language-toml", | |
"version": "0.18.2" | |
}, | |
{ | |
"name": "language-typescript", | |
"version": "0.4.11" | |
}, | |
{ | |
"name": "language-x86-64-assembly", | |
"version": "2.2.11" | |
}, | |
{ | |
"name": "language-xml", | |
"version": "0.35.2" | |
}, | |
{ | |
"name": "language-yaml", | |
"version": "0.32.0" | |
}, | |
{ | |
"name": "line-ending-selector", | |
"version": "0.7.7" | |
}, | |
{ | |
"name": "link", | |
"version": "0.31.6" | |
}, | |
{ | |
"name": "linter-glsl", | |
"version": "2.1.4" | |
}, | |
{ | |
"name": "linter-luacheck", | |
"version": "2.0.1" | |
}, | |
{ | |
"name": "linter-shellcheck", | |
"version": "1.5.0" | |
}, | |
{ | |
"name": "markdown-preview", | |
"version": "0.159.25" | |
}, | |
{ | |
"name": "markdown-scroll-sync", | |
"version": "2.1.2" | |
}, | |
{ | |
"name": "metrics", | |
"version": "1.6.2" | |
}, | |
{ | |
"name": "notifications", | |
"version": "0.70.5" | |
}, | |
{ | |
"name": "one-dark-syntax", | |
"version": "1.8.4", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-dark-ui", | |
"version": "1.12.5", | |
"theme": "ui" | |
}, | |
{ | |
"name": "one-light-syntax", | |
"version": "1.8.4", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-light-ui", | |
"version": "1.12.5", | |
"theme": "ui" | |
}, | |
{ | |
"name": "open-on-github", | |
"version": "1.3.1" | |
}, | |
{ | |
"name": "package-generator", | |
"version": "1.3.0" | |
}, | |
{ | |
"name": "pigments", | |
"version": "0.40.2" | |
}, | |
{ | |
"name": "script", | |
"version": "3.18.1" | |
}, | |
{ | |
"name": "settings-view", | |
"version": "0.256.1" | |
}, | |
{ | |
"name": "simple-align", | |
"version": "0.2.0" | |
}, | |
{ | |
"name": "snippets", | |
"version": "1.3.5" | |
}, | |
{ | |
"name": "solarized-dark-syntax", | |
"version": "1.2.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "solarized-light-syntax", | |
"version": "1.2.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "sort-lines", | |
"version": "0.18.0" | |
}, | |
{ | |
"name": "spell-check", | |
"version": "0.74.1" | |
}, | |
{ | |
"name": "status-bar", | |
"version": "1.8.15" | |
}, | |
{ | |
"name": "styleguide", | |
"version": "0.49.12" | |
}, | |
{ | |
"name": "swackets", | |
"version": "0.35.0" | |
}, | |
{ | |
"name": "switch-header-source", | |
"version": "0.32.0" | |
}, | |
{ | |
"name": "symbols-view", | |
"version": "0.118.2" | |
}, | |
{ | |
"name": "sync-settings", | |
"version": "0.8.6" | |
}, | |
{ | |
"name": "tabs", | |
"version": "0.109.2" | |
}, | |
{ | |
"name": "tabs-to-spaces", | |
"version": "1.0.5" | |
}, | |
{ | |
"name": "tag", | |
"version": "0.5.0" | |
}, | |
{ | |
"name": "teletype", | |
"version": "0.13.3" | |
}, | |
{ | |
"name": "timecop", | |
"version": "0.36.2" | |
}, | |
{ | |
"name": "todo-show", | |
"version": "2.3.2" | |
}, | |
{ | |
"name": "tree-view", | |
"version": "0.224.2" | |
}, | |
{ | |
"name": "update-package-dependencies", | |
"version": "0.13.1" | |
}, | |
{ | |
"name": "vue-autocomplete", | |
"version": "0.1.1" | |
}, | |
{ | |
"name": "welcome", | |
"version": "0.36.7" | |
}, | |
{ | |
"name": "whitespace", | |
"version": "0.37.7" | |
}, | |
{ | |
"name": "wrap-guide", | |
"version": "0.40.3" | |
}, | |
{ | |
"name": "xml-formatter", | |
"version": "0.11.0" | |
} | |
] |
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
{ | |
"activate-power-mode": { | |
"plugins": { | |
"playAudio": true, | |
"screenShake": true | |
} | |
}, | |
"atom-alignment": { | |
"addSpacePostfix": true, | |
"alignmentSpaceChars": [ | |
"=>", | |
":=", | |
"=", | |
"const", | |
"noexcept" | |
] | |
}, | |
"atom-beautify": { | |
"c": { | |
"default_beautifier": "clang-format" | |
}, | |
"cpp": { | |
"configPath": "~/.clang-format", | |
"default_beautifier": "clang-format" | |
}, | |
"general": { | |
"_analyticsUserId": "3040caa4-87c9-4826-bc49-3395e156161b" | |
}, | |
"yaml": { | |
"beautify_on_save": true | |
} | |
}, | |
"atom-clock": { | |
"dateFormat": "MMMM Do, dddd, HH:mm", | |
"locale": "de" | |
}, | |
"atom-ide-ui": { | |
"atom-ide-datatip": { | |
"datatipDebounceDelay": 100 | |
}, | |
"atom-ide-diagnostics-ui": { | |
"autoVisibility": true, | |
"showDiagnosticTraces": true, | |
"showDirectoryColumn": true | |
}, | |
"atom-ide-terminal": { | |
"cursorBlink": true, | |
"cursorStyle": "bar" | |
}, | |
"hyperclick": { | |
"linuxTriggerKeys": "altKey" | |
}, | |
"use": { | |
"atom-ide-busy-signal": "always", | |
"atom-ide-code-actions": "default", | |
"atom-ide-code-format": "always", | |
"atom-ide-code-highlight": "always", | |
"atom-ide-console": "always", | |
"atom-ide-datatip": "default", | |
"atom-ide-debugger": "default", | |
"atom-ide-definitions": "default", | |
"atom-ide-diagnostics": "default", | |
"atom-ide-diagnostics-ui": "default", | |
"atom-ide-find-references": "default", | |
"atom-ide-global": "default", | |
"atom-ide-outline-view": "always", | |
"atom-ide-signature-help": "default", | |
"atom-ide-terminal": "default", | |
"hyperclick": "default" | |
} | |
}, | |
"atom-include-path": { | |
"helmDirSwitch": true | |
}, | |
"atom-material-ui": { | |
"colors": { | |
"abaseColor": "#ef5350", | |
"accentColor": "#59fcff", | |
"genAccent": true, | |
"predefinedColor": "Red" | |
}, | |
"tabs": { | |
"compactTabs": true | |
}, | |
"ui": { | |
"panelShadows": true | |
} | |
}, | |
"atom-package-deps": { | |
"ignored": [ | |
"linter-clang", | |
"linter-glsl", | |
"linter-luacheck" | |
] | |
}, | |
"atom-terminal": { | |
"app": "/usr/bin/konsole" | |
}, | |
"autoclose-html": { | |
"legacyMode": true | |
}, | |
"autocomplete-clang": { | |
"includeNonDoxygenCommentsAsDocumentation": true, | |
"includePaths": [ | |
".", | |
"./include/" | |
], | |
"includeSystemHeadersDocumentation": true, | |
"std c": "c11", | |
"std c++": "c++17" | |
}, | |
"autocomplete-plus": { | |
"confirmCompletion": "tab", | |
"enableExtendedUnicodeSupport": true, | |
"minimumWordLength": 2, | |
"similarSuggestionRemoval": "textOrSnippet" | |
}, | |
"build": { | |
"matchedErrorFailsBuild": false, | |
"overrideThemeColors": false, | |
"saveOnBuild": true, | |
"statusBar": "Right", | |
"stealFocus": false | |
}, | |
"build-make": { | |
"useMake": true | |
}, | |
"core": { | |
"autoHideMenuBar": true, | |
"closeDeletedFileTabs": true, | |
"disabledPackages": [ | |
"github", | |
"ide-cpp", | |
"linter-glsl", | |
"markdown-scroll-sync", | |
"styleguide", | |
"teletype", | |
"welcome" | |
], | |
"packagesWithKeymapsDisabled": [ | |
"atom-beautify", | |
"atom-terminal" | |
], | |
"projectHome": "/home/benno/dev", | |
"telemetryConsent": "limited", | |
"themes": [ | |
"atom-material-ui", | |
"gruvbox-plus-syntax" | |
], | |
"useTreeSitterParsers": true | |
}, | |
"cpp-generator": { | |
"useSelectedFilepath": true | |
}, | |
"editor": { | |
"atomicSoftTabs": false, | |
"fontFamily": "DejaVu Sans Mono", | |
"fontSize": 12, | |
"scrollPastEnd": true, | |
"showInvisibles": true, | |
"softWrap": true, | |
"tabLength": 4, | |
"tabType": "hard" | |
}, | |
"exception-reporting": { | |
"userId": "12f9b88f-8fc1-67fc-9659-d3e90c45e0f0" | |
}, | |
"grammar-token-limit": { | |
"maxTokensPerLine": 200 | |
}, | |
"gruvbox-plus-syntax": { | |
"variant": "No Dimmed Colors" | |
}, | |
"ide-clangd": { | |
"commandArguments": "-std=c++17" | |
}, | |
"ide-python": { | |
"pylsPlugins": { | |
"autopep8": {}, | |
"rope_completion": {}, | |
"yapf": {} | |
} | |
}, | |
"linter": { | |
"ignoreGlob": "PKGBUILD", | |
"lintOnChange": false, | |
"lintOnChangeInterval": 10000 | |
}, | |
"linter-clang": { | |
"clangDefaultCFlags": "-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable", | |
"clangDefaultCppFlags": "-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-pragma-once-outside-header -std=c++17 -DCLANG_LINT -march=native -fmodules-ts", | |
"clangIncludePaths": [ | |
".", | |
"include", | |
"src" | |
] | |
}, | |
"linter-glsl": { | |
"linkSimilarShaders": true | |
}, | |
"linter-luacheck": { | |
"globals": [ | |
"_OPTIONS", | |
"workspace", | |
"project", | |
"filter", | |
"files", | |
"kind", | |
"os", | |
"includedirs", | |
"defines", | |
"removefiles", | |
"newoption", | |
"language", | |
"cppdialect", | |
"location", | |
"configurations", | |
"optimize", | |
"symbols", | |
"flags", | |
"vectorextensions", | |
"platforms", | |
"architecture", | |
"gccprefix", | |
"targetname", | |
"_ACTION", | |
"links", | |
"newaction", | |
"printf", | |
"premake" | |
], | |
"ignore": [ | |
"self" | |
] | |
}, | |
"linter-ui-default": { | |
"decorateOnTreeView": "Files and Directories", | |
"hidePanelWhenEmpty": true, | |
"panelHeight": 159, | |
"panelRepresents": "Entire Project", | |
"showPanel": true | |
}, | |
"linter-write-good": { | |
"severityLevel": "Warning" | |
}, | |
"markdown-preview": { | |
"breakOnSingleNewline": true, | |
"liveUpdate": false, | |
"useGitHubStyle": true | |
}, | |
"minimap": { | |
"absoluteMode": true, | |
"autoToggle": false | |
}, | |
"open-bash-git": { | |
"command": "konsole" | |
}, | |
"open-in-browsers": { | |
"Firefox": false, | |
"IE": false, | |
"Opera": false, | |
"Safari": false | |
}, | |
"script": { | |
"stopOnRerun": true | |
}, | |
"spell-check": { | |
"locales": [ | |
"en-US" | |
] | |
}, | |
"split-diff": { | |
"diffWords": true, | |
"ignoreWhitespace": true, | |
"leftEditorColor": "red", | |
"rightEditorColor": "green", | |
"syncHorizontalScroll": true | |
}, | |
"swackets": { | |
"colorParens": true | |
}, | |
"switch-header-source": { | |
"fileRegex": "(.*)(\\.h(pp)|\\.c(c|pp|xx))$" | |
}, | |
"sync-settings": { | |
"checkForUpdatedBackup": false, | |
"quietUpdateCheck": true | |
}, | |
"terminal-tab": {}, | |
"todo-show": { | |
"findTheseTodos": [ | |
"TODO", | |
"OPTIMIZE", | |
"MISSING", | |
"HACK", | |
"LEAK", | |
"MYSTERY" | |
], | |
"ignoreThesePaths": [ | |
"thirdparty", | |
"stb_*" | |
], | |
"sortAscending": false, | |
"sortBy": "Type", | |
"statusBarIndicator": true | |
}, | |
"tree-view": { | |
"alwaysOpenExisting": true, | |
"autoReveal": true, | |
"focusOnReveal": false, | |
"hideIgnoredNames": true, | |
"hideVcsIgnoredFiles": true, | |
"squashDirectoryNames": true | |
}, | |
"welcome": { | |
"showOnStartup": false | |
} | |
} |
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
'.source.cpp': | |
# Classes | |
'class': | |
'prefix': 'class' | |
'body': 'class ${1:FooBar} {\n\t$2\npublic:\n\t${1:FooBar}() {}\n\t~${1:FooBar}() {}\n};' | |
'template class': | |
'prefix': 'tclass' | |
'body': 'template<${1:typename T}>\nclass ${2:FooBar} {\n\t$3\npublic:\n\t${2:FooBar}() {}\n\t~${2:FooBar}() {}\n};' | |
'template class fwd': | |
'prefix': 'tclassd' | |
'body': 'template<${1:typename T}>\nclass ${2:FooBar};' | |
'struct': | |
'prefix': 'struct' | |
'body': """struct ${2:FooBar} {\n\t$3\n};""" | |
'template struct': | |
'prefix': 'tstruct' | |
'body': 'template<typename ${1:T}>\nstruct ${2:FooBar} {\n\t$3\n};' | |
# Functions | |
'function': | |
'prefix': 'fn' | |
'body': '${1:void} ${2:foo}($3) {$4};' | |
'function template': | |
'prefix': 'tfn' | |
'body': 'template<typename ${1:T}>\n${2:void} ${3:foo}($4) {$5};' | |
'getter': | |
'prefix': 'gfn' | |
'body': '${1:auto} ${2:member}() const noexcept { return ${3:${2:member}}; }' | |
'std::function': | |
'prefix': 'func' | |
'body': 'std::function<${1:void}($2)> $3' | |
'MIT License': | |
'prefix': 'mitl' | |
'body': '// Copyright (c) 2018 Benno Straub, licensed under the MIT license. (A copy can be found at the bottom of this file)\n\n/*\n | |
Copyright (c) 2018 Benno Straub\n\n | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\n | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n | |
*/' | |
# Lambdas | |
'lambda: copy': | |
'prefix': 'ld' | |
'body': '[=]($1) {\n\t$2\n}' | |
'lambda: reference': | |
'prefix': 'lr' | |
'body': '[&]($1) {\n\t$2\n}' | |
'class-lambda': | |
'prefix': 'lm' | |
'body': '[${1:=}]($2) {\n\t$3\n}' | |
# Control statements | |
'if': | |
'prefix': 'if' | |
'body': 'if($1) {$2}' | |
'for each': | |
'prefix': 'fe' | |
'body': 'for(auto& ${1:v} : ${2:container}) {\n\t$3\n}' | |
'for(x, y)': | |
'prefix': 'forxy' | |
'body': 'for(${1:size_t} x = 0; x < w; x++) {\n\tfor(${1:size_t} y = 0; y < h; y++) {\n\t\t${1:size_t} index = x + y * w;\n\t\t$2\n\t}\n}' | |
# Stuff | |
'std::string': | |
'prefix': 'str' | |
'body': 'std::string' | |
'std::string const&': | |
'prefix': 'strr' | |
'body': 'std::string const& ' | |
'std::vector<T>': | |
'prefix': 'vec' | |
'body': 'std::vector<${1:uint8_t}> $2' | |
'std::vector<T> const&': | |
'prefix': 'vecr' | |
'body': 'std::vector<${1:uint8_t}> const& $2' | |
'std::forward<ARGS>(args)...': | |
'prefix': 'fwd' | |
'body': 'std::forward<${1:ARGS}>(${2:args})...$3' | |
'std::move(X)': | |
'prefix': 'mv' | |
'body': 'std::move(${1:x})$2' | |
'reinterpret_cast<T>': | |
'prefix': 'castr' | |
'body': 'reinterpret_cast<$1>($2)$3' | |
'static_cast<T>': | |
'prefix': 'casts' | |
'body': 'static_cast<$1>($2)$3' | |
'dynamic_cast<T>': | |
'prefix': 'castd' | |
'body': 'dynamic_cast<$1>($2)$3' | |
'const_cast<T>': | |
'prefix': 'castc' | |
'body': 'const_cast<$1>($2)$3' | |
'c_str()': | |
'prefix': 'cst' | |
'body': 'c_str()' | |
'std::shared_ptr<T>': | |
'prefix': 'sp' | |
'body': 'std::shared_ptr<${1:T}> $2' | |
'unimplemeted': | |
'prefix': 'unimplemeted' | |
'body': 'throw std::runtime_error("Unimplemented");' | |
'using namespace std': | |
'prefix': 'uns' | |
'body': 'using namespace std;\n' | |
'using namespace std::chrono': | |
'prefix': 'unc' | |
'body': 'using namespace std::chrono;\nusing namespace std::chrono_literals;\n' | |
'using namespace std::chrono::literals': | |
'prefix': 'uncl' | |
'body': 'using namespace std::chrono_literals;\n' | |
'using namespace std::experimental': | |
'prefix': 'unx' | |
'body': 'using namespace std::experimental;\n' | |
'using namespace': | |
'prefix': 'un' | |
'body': 'using namespace ${1:std};\n' | |
'namespace': | |
'prefix': 'ns' | |
'body': """namespace ${1:rojo} {\n\n$2\n\n} // namespace ${1:rojo}""" | |
'double namespace': | |
'prefix': 'ns2' | |
'body': 'namespace ${1:stx} {\nnamespace ${2:widget} {\n\n$3\n\n} // namespace ${2:widget}\n} // namespace ${1:stx}' | |
'main(argc, argv)': | |
'prefix': 'main' | |
'body': 'int main(int argc, char const** argv) {\n\t$1\n\treturn 0;\n}' | |
'#pragma once': | |
'prefix': 'once' | |
'body': '#pragma once\n\n' | |
'#pragma once + include guard': | |
'prefix': 'onceh' | |
'body': '#ifndef ${1:HEADER}_INCLUDED\n#define ${1:HEADER}_INCLUDED\n\n#pragma once\n\n#endif // header guard ${1:HEADER}_INCLUDED' | |
'.source.java': | |
'for(int i...)': | |
'prefix': 'for' | |
'body': 'for (int ${1:i} = 0; ${1:i} < ${2}; ${1:i}${3:++}) {\n $4\n}' | |
# C-like languages | |
'.source.cpp, .source.c, .source.java .source.glsl': | |
# Comments | |
'separator': | |
'prefix': 'sep' | |
'body': '//--------------------------------------------------------------\n' | |
'separator2': | |
'prefix': 'sep2' | |
'body': '//**************************************************************\n' | |
'separator3': | |
'prefix': 'sep3' | |
'body': '//==============================================================\n' | |
'section': | |
'prefix': 'sec' | |
'body': '// -- $1 -------------------------------------------------------$2\n$3' | |
'section2': | |
'prefix': 'sec2' | |
'body': '// ** $1 *******************************************************$2\n$3' | |
'section3': | |
'prefix': 'sec3' | |
'body': """ | |
// ============================================================= | |
// == ${1:Comment} =============================================$2 | |
// =============================================================$3""" | |
'doxygen //<!': | |
'prefix': 'that' | |
'body': '//<! ' | |
'todo': | |
'prefix': 'todo' | |
'body': '// TODO: ' | |
'bug': | |
'prefix': 'bug' | |
'body': '// BUG: ' | |
'hack': | |
'prefix': 'hack' | |
'body': '// HACK: ' | |
'leak': | |
'prefix': 'leak' | |
'body': '// LEAK: ' | |
'.source.lua': | |
'local = require': | |
'prefix': 'reqq' | |
'body': 'local ${1:module} = require \'${1:module}\'' | |
'require': | |
'prefix': 'req' | |
'body': 'require \'${1:module}\'' | |
'function': | |
'prefix': 'fn' | |
'body': 'function ${1:foo}(${2})\n\t${3}\nend' | |
'default premake5 workspace': | |
'prefix': 'workspace' | |
'body': ''' | |
workspace '${1:MyWorkspace}' | |
language 'C++' | |
cppdialect 'C++17' | |
configurations { | |
\t'dev', | |
\t'debug', | |
\t'release', | |
} | |
filter 'configurations:release or dev' | |
\toptimize 'Speed' | |
filter 'configurations:dev or debug' | |
\tsymbols 'On' | |
filter 'configurations:debug' | |
\toptimize 'Debug' | |
filter 'configurations:release' | |
\tflags 'LinkTimeOptimization' | |
filter {} | |
filter { 'configurations:dev or debug', 'toolset:gcc or clang' } | |
\tbuildoptions { '-Wall', '-Wextra', '-Wno-unused-parameter' } | |
filter {} | |
flags { 'MultiProcessorCompile', 'NoIncrementalLink' } | |
vectorextensions 'SSE2' | |
floatingpoint 'Fast' | |
''' | |
'default premake5 project': | |
'prefix': 'project' | |
'body':''' | |
project '${2:test}' | |
\tkind 'ConsoleApp' | |
\tfiles '${3:src}/**.cpp' | |
''' |
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
@import "syntax-variables"; | |
atom-text-editor .invisible-character { | |
color: @syntax-background-color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment