Skip to content

Instantly share code, notes, and snippets.

@AngryAnt
Last active August 29, 2015 14:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AngryAnt/aab9ff86c2595410d165 to your computer and use it in GitHub Desktop.
Save AngryAnt/aab9ff86c2595410d165 to your computer and use it in GitHub Desktop.
Sublime, OmniSharp and DashDoc keymap and autocomplete settings.
[
{ "keys": ["super+<"], "command": "toggle_side_bar" },
{ "keys": ["super+."], "command": "show_overlay", "args": {"overlay": "goto"} },
{ "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }
]
{
"PathReplacements": [
],
/* Example cygwin path replacements
"PathReplacements":[
{
"From":"/cygdrive/c/",
"To":"c:\\"
},
{
"From":"/",
"To":"\\"
}
],*/
/* Native Emacs on Windows path replacements
"PathReplacements": [
{
"From":"/",
"To":"\\"
}
],*/
"IgnoredCodeIssues": [
".* should not separate words with an underscore.*",
"^Initializing field by default value is redundant$",
"^Convert to readonly$",
"^Use 'var' keyword$",
"^Local variable '.*' hides property '.*'$",
"^Convert to constant$",
"^Empty argument list is redundant$",
"^Redundant array creation expression$"
],
"TestCommands": {
"All": "nunit-console.exe -nologo {{AssemblyPath}}",
"Fixture": "nunit-console.exe -nologo {{AssemblyPath}} -run={{TypeName}}",
"Single": "nunit-console.exe -nologo {{AssemblyPath}} -run={{TypeName}}.{{MethodName}}"
},
"TextEditorOptions": {
"tabsToSpaces": false,
"tabSize": 4,
"indentSize": 4,
"continuationIndent": 4,
"labelIndent": 0,
/* "eolMarker": "\r\n", */
"indentBlankLines": false,
"wrapLineLength": 80
},
"CSharpFormattingOptionsName" : "Custom",
"CSharpFormattingOptions": {
"alignElseInIfStatements": false,
"alignEmbeddedStatements": true,
"alignToFirstIndexerArgument": false,
"alignToFirstIndexerDeclarationParameter": false,
"alignToFirstMethodCallArgument": false,
"alignToFirstMethodDeclarationParameter": false,
"alignToMemberReferenceDot": false,
"allowEventAddBlockInline": true,
"allowEventRemoveBlockInline": true,
"allowIfBlockInline": false,
"allowOneLinedArrayInitialziers": true,
"anonymousMethodBraceStyle": 3,
"arrayInitializerBraceStyle": 3,
"arrayInitializerWrapping": 0,
"autoPropertyFormatting": 0,
"catchNewLinePlacement": 1,
"chainedMethodCallWrapping": 0,
"classBraceStyle": 3,
"constructorBraceStyle": 3,
"destructorBraceStyle": 3,
"elseIfNewLinePlacement": 2,
"elseNewLinePlacement": 1,
"embeddedStatementPlacement": 1,
"emptyLineFormatting": 2,
"enumBraceStyle": 3,
"eventAddBraceStyle": 3,
"eventBraceStyle": 3,
"eventRemoveBraceStyle": 3,
"finallyNewLinePlacement": 1,
"indentBlocks": true,
"indentBlocksInsideExpressions": true,
"indentBreakStatements": true,
"indentCaseBody": true,
"indentClassBody": true,
"indentEnumBody": true,
"indentEventBody": true,
"indentInterfaceBody": true,
"indentMethodBody": true,
"indentNamespaceBody": true,
"indentPreprocessorDirectives": true,
"indentPropertyBody": true,
"indentStructBody": true,
"indentSwitchBody": true,
"indexerArgumentWrapping": 0,
"indexerClosingBracketOnNewLine": 0,
"indexerDeclarationClosingBracketOnNewLine": 0,
"indexerDeclarationParameterWrapping": 0,
"interfaceBraceStyle": 3,
"keepCommentsAtFirstColumn": true,
"methodBraceStyle": 3,
"methodCallArgumentWrapping": 0,
"methodCallClosingParenthesesOnNewLine": 0,
"methodDeclarationClosingParenthesesOnNewLine": 0,
"methodDeclarationParameterWrapping": 0,
"minimumBlankLinesAfterUsings": 1,
"minimumBlankLinesAroundRegion": 1,
"minimumBlankLinesBeforeFirstDeclaration": 0,
"minimumBlankLinesBeforeUsings": 0,
"minimumBlankLinesBetweenEventFields": 0,
"minimumBlankLinesBetweenFields": 0,
"minimumBlankLinesBetweenMembers": 0,
"minimumBlankLinesBetweenTypes": 1,
"minimumBlankLinesInsideRegion": 1,
"namespaceBraceStyle": 3,
"newLineAferIndexerDeclarationOpenBracket": 0,
"newLineAferIndexerOpenBracket": 0,
"newLineAferMethodCallOpenParentheses": 0,
"newLineAferMethodDeclarationOpenParentheses": 0,
"newLineAfterConstructorInitializerColon": 2,
"newLineBeforeConstructorInitializerColon": 1,
"newLineBeforeNewQueryClause": 1,
"propertyBraceStyle": 3,
"propertyGetBraceStyle": 3,
"propertySetBraceStyle": 3,
"removeEndOfLineWhiteSpace": true,
"simpleGetBlockFormatting": 0,
"simplePropertyFormatting": 0,
"simpleSetBlockFormatting": 0,
"spaceAfterBracketComma": true,
"spaceAfterConditionalOperatorCondition": true,
"spaceAfterConditionalOperatorSeparator": true,
"spaceAfterConstructorDeclarationParameterComma": true,
"spaceAfterDelegateDeclarationParameterComma": true,
"spaceAfterFieldDeclarationComma": true,
"spaceAfterForSemicolon": true,
"spaceAfterIndexerDeclarationParameterComma": true,
"spaceAfterLocalVariableDeclarationComma": true,
"spaceAfterMethodCallParameterComma": true,
"spaceAfterMethodDeclarationParameterComma": true,
"spaceAfterNewParameterComma": true,
"spaceAfterTypecast": false,
"spaceAfterUnsafeAddressOfOperator": false,
"spaceAfterUnsafeAsteriskOfOperator": false,
"spaceAroundAdditiveOperator": true,
"spaceAroundAssignment": true,
"spaceAroundBitwiseOperator": true,
"spaceAroundEqualityOperator": true,
"spaceAroundLogicalOperator": true,
"spaceAroundMultiplicativeOperator": true,
"spaceAroundNullCoalescingOperator": true,
"spaceAroundRelationalOperator": true,
"spaceAroundShiftOperator": true,
"spaceAroundUnsafeArrowOperator": false,
"spaceBeforeArrayDeclarationBrackets": false,
"spaceBeforeBracketComma": false,
"spaceBeforeCatchParentheses": true,
"spaceBeforeConditionalOperatorCondition": true,
"spaceBeforeConditionalOperatorSeparator": true,
"spaceBeforeConstructorDeclarationParameterComma": false,
"spaceBeforeConstructorDeclarationParentheses": false,
"spaceBeforeDelegateDeclarationParameterComma": false,
"spaceBeforeDelegateDeclarationParentheses": false,
"spaceBeforeFieldDeclarationComma": false,
"spaceBeforeForParentheses": true,
"spaceBeforeForSemicolon": false,
"spaceBeforeForeachParentheses": true,
"spaceBeforeIfParentheses": true,
"spaceBeforeIndexerDeclarationBracket": false,
"spaceBeforeIndexerDeclarationParameterComma": false,
"spaceBeforeLocalVariableDeclarationComma": false,
"spaceBeforeLockParentheses": true,
"spaceBeforeMethodCallParameterComma": false,
"spaceBeforeMethodCallParentheses": true,
"spaceBeforeMethodDeclarationParameterComma": false,
"spaceBeforeMethodDeclarationParentheses": true,
"spaceBeforeNewParameterComma": false,
"spaceBeforeNewParentheses": true,
"spaceBeforeSemicolon": false,
"spaceBeforeSizeOfParentheses": true,
"spaceBeforeSwitchParentheses": true,
"spaceBeforeTypeOfParentheses": true,
"spaceBeforeUsingParentheses": true,
"spaceBeforeWhileParentheses": true,
"spaceBetweenEmptyConstructorDeclarationParentheses": false,
"spaceBetweenEmptyDelegateDeclarationParentheses": false,
"spaceBetweenEmptyMethodCallParentheses": false,
"spaceBetweenEmptyMethodDeclarationParentheses": false,
"spaceInNamedArgumentAfterDoubleColon": true,
"spaceWithinConstructorDeclarationParentheses": false,
"spaceWithinDelegateDeclarationParentheses": false,
"spaceWithinIndexerDeclarationBracket": false,
"spaceWithinMethodCallParentheses": false,
"spaceWithinMethodDeclarationParentheses": false,
"spacesBeforeBrackets": false,
"spacesBetweenEmptyNewParentheses": false,
"spacesWithinBrackets": false,
"spacesWithinCastParentheses": false,
"spacesWithinCatchParentheses": false,
"spacesWithinCheckedExpressionParantheses": false,
"spacesWithinForParentheses": false,
"spacesWithinForeachParentheses": false,
"spacesWithinIfParentheses": false,
"spacesWithinLockParentheses": false,
"spacesWithinNewParentheses": false,
"spacesWithinParentheses": false,
"spacesWithinSizeOfParentheses": false,
"spacesWithinSwitchParentheses": false,
"spacesWithinTypeOfParentheses": false,
"spacesWithinUsingParentheses": false,
"spacesWithinWhileParentheses": false,
"statementBraceStyle": 3,
"structBraceStyle": 3,
"usingPlacement": 0,
"whileNewLinePlacement": 0
}
}
{
"auto_complete_commit_on_tab": true,
"binary_file_patterns":
[
"*.pxm",
"*.exe",
".git/index",
".git/*/index"
],
"caret_style": "phase",
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_indent_guides": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.meta"
],
"fold_buttons": false,
"folder_exclude_patterns":
[
"Library",
"Temp"
],
"font_size": 12.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"line_numbers": false,
"margin": 15,
"scroll_past_end": false,
"trim_trailing_white_space_on_save": true,
"theme": "Spacegray Light.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.light.tmTheme",
"spacegray_tabs_small": true,
"enable_tab_scrolling": false
}
{
"auto_complete": true,
"auto_complete_selector": "source - comment",
"auto_complete_triggers": [ {"selector": "source.cs", "characters": ".<"} ]
}
[
{ "keys": ["shift+ctrl+super+space"], "command": "dash_doc"}
]
[
{"command": "omni_sharp_go_to_definition", "keys": ["super+d"]},
{"command": "omni_sharp_find_usages", "keys": ["shift+super+d"]},
{"command": "omni_sharp_rename", "keys": ["super+r"]},
{"command": "omni_sharp_code_actions", "keys": ["alt+space"]},
{"command": "omni_sharp_type_lookup", "keys": ["super+alt++"]}, // This one probably only makes sense on a danish keyboard
{
"command": "omni_sharp_show_panel",
"keys": ["super+shift+<"],
"context":
[
{"key": "panel_visible", "operator": "equal", "operand": false}
]
},
{
"command": "omni_sharp_hide_panel",
"keys": ["super+shift+<"],
"context":
[
{"key": "panel_visible", "operator": "equal", "operand": true}
]
},
{"command": "omni_sharp_format_document", "keys": ["super+shift+."]},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment