Skip to content

Instantly share code, notes, and snippets.

@TheClams
TheClams / C#.patch
Created September 18, 2022 08:39
C# Region Fold
diff --git a/C#/C#.sublime-syntax b/C#/C#.sublime-syntax
index e1d97064..fbfc2941 100644
--- a/C#/C#.sublime-syntax
+++ b/C#/C#.sublime-syntax
@@ -120,11 +120,11 @@ contexts:
2: string.unquoted.cs
- match: '\b(region)\b\s*(.*)'
captures:
- 1: keyword.other.preprocessor.cs
+ 1: keyword.other.preprocessor.begin.cs
@TheClams
TheClams / Default.sublime-mousemap
Created May 22, 2020 20:31
Click anywhere for sublime Text (virtual space)
[
{"button": "button2", "modifiers": ["alt"],"press_command": "click_anywhere"}
]
{
"name": "Sunburst",
"author": "Stanley Rost",
"variables":
{
"black": "#000000",
"black2": "#242424",
"black3": "#420e09",
"black4": "#003000",
"black5": "#0e2231",
{
"name": "Sunburst",
"author": "Stanley Rost",
"variables":
{
"black": "#000000",
"black2": "#242424",
"black3": "#420e09",
"black4": "#003000",
"black5": "#0e2231",
@TheClams
TheClams / my_goto_definition.py
Created July 4, 2018 18:34
[SublimeText3] Modified Goto definition to select current file if inside the list
import sublime
import sublime_plugin
import os
def lookup_symbol(window, symbol):
if len(symbol.strip()) < 3:
return []
index_locations = window.lookup_symbol_in_index(symbol)
open_file_locations = window.lookup_symbol_in_open_files(symbol)