Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Sublime Text 3 Settings

Theme

Material Theme

Packages

  • AutoFileName
  • CodeComplice
  • Color Highlighter
  • CSS3
  • CSSFontFamily
  • DocBlockr
  • EditorConfig
  • Emmet
  • HTML5
  • HTMLAttributes
  • jQuery
  • Laravel 5 Artisan
  • Laravel 5 Snippets
  • Laravel Blade Highlighter
  • Local History
  • Markdown Preview
  • Open-Include
  • PHP Companion
  • PHP Getters and Setters
  • PHP-Twig
  • SideBarEnhancements
  • Stylus
  • SublimeLinter
  • SublimeLinter-php
  • Sync Settings
  • WakaTime

User Settings

{
	"always_show_minimap_viewport": true,
	"binary_file_patterns":
	[
		"*.dds",
		"*.eot",
		"*.gif",
		"*.ico",
		"*.jar",
		"*.jpeg",
		"*.jpg",
		"*.pdf",
		"*.png",
		"*.swf",
		"*.tga",
		"*.ttf",
		"*.zip",
		"dist/**",
		"node_modules/**"
	],
	"bold_folder_labels": false,
	"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
	"font_options":
	[
		"gray_antialias",
		"subpixel_antialias"
	],
	"font_size": 9,
	"ignored_packages":
	[
		"Vintage"
	],
	"indent_guide_options":
	[
		"draw_normal",
		"draw_active"
	],
	"line_padding_bottom": 3,
	"line_padding_top": 3,
	"material_theme_contrast_mode": true,
	"material_theme_panel_separator": true,
	"material_theme_tabs_autowidth": true,
	"overlay_scroll_bars": "enabled",
	"theme": "Material-Theme-Darker.sublime-theme",
	"translate_tabs_to_spaces": true
}

User Key Bindings

[
	{ "keys": ["ctrl+/"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
	{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } },
	{ "keys": ["ctrl+shift+;"], "command": "toggle_comment", "args": { "block": true } },
	{ "keys": ["f2"], "command": "side_bar_rename" },
	{ "keys": ["f9"], "command": "expand_fqcn" },
	{ "keys": ["f10"], "command": "find_use" },
	{ "keys": ["f7"], "command": "insert_php_constructor_property" },
	{ "keys": ["f3"], "command": "implement" }
]

Snippets

1. Class Snippet

<snippet>
    <content><![CDATA[
class ${1:DummyClass}
{
    ${2}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>class</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

2. Construct Snippet

<snippet>
    <content><![CDATA[
/**
 * Create a new class instance.
 *
 * @return void
 */
public function __construct(${1})
{
    ${2}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>_c</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

3. Inherit Doc Snippet

<snippet>
    <content><![CDATA[
/**
 * {@inheritdoc}
 */
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>@idc</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

4. Method Snippet

<snippet>
    <content><![CDATA[
${1:public} function ${2}(${3})
{
    ${4}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>met</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>

5. Laravel Route Get Snippet

<snippet>
    <content><![CDATA[
Route::get('${1:/}', '${2:Dummy}Controller@${3:dummyMethod}')->name('${4:dummy.name}');
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>rtg</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.