Skip to content

Instantly share code, notes, and snippets.

@rvibit
Created April 21, 2024 08:36
Show Gist options
  • Save rvibit/7fa1524a54cb2d0740af16c9a665ad1e to your computer and use it in GitHub Desktop.
Save rvibit/7fa1524a54cb2d0740af16c9a665ad1e to your computer and use it in GitHub Desktop.
Sublime Settigs
[
// add namespace
{ "keys": ["f6"], "command": "import_namespace" },
// add constructor property
{ "keys": ["f7"], "command": "insert_php_constructor_property" },
// add namespace to class (expand to fully qualified class name)
{ "keys": ["f9"], "command": "expand_fqcn" },
// add FQCN to use statements
{ "keys": ["f10"], "command": "find_use" },
// ace jump to a word
{ "keys": ["ctrl+,"], "command": "ace_jump_word" },
// test function closest to the cursor
{ "keys": ["ctrl+shift+n"], "command": "phpunit_test_nearest" },
// re-run last test
{ "keys": ["ctrl+shift+l"], "command": "phpunit_test_last" },
// convert sentence to test method
{ "keys": ["ctrl+e"], "command": "php_unit_test_method" },
// reveal current file in sidebar
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+q"], "command": "toggle_side_bar" }
]
{
"telemetry": false,
"uid": "40226e7c-f3f3-46f9-a11f-03cd43674d16",
}
{
"lsp_format_on_save": true,
"log_debug": false,
"clients":{
"phpactor":{
"command":[
"phpactor",
"language-server"
],
"enabled":false,
"languageId":"php",
"scopes":[
"source.php",
"embedding.php"
],
"syntaxes":[
"Packages/PHP/PHP.sublime-syntax"
],
"config":{
"language_server_php_cs_fixer.enabled": true,
"language_server_php_cs_fixer.bin": "\/usr\/bin\/php-cs-fixer"
}
}
}
}
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"BracketHighlighter",
"CodeComplice",
"DotENV",
"Emmet",
"ESLint",
"FileIcons",
"GraphQL",
"Liquid",
"LSP",
"LSP-intelephense",
"Material Theme",
"Package Control",
"PHP Companion",
"PHP Completions Kit",
"PHP CS Fixer",
"SideBarEnhancements",
"SublimeLinter",
"SublimeLinter-php",
"Sync Settings",
],
}
{
"phpcs_php_path": "/usr/bin/php",
"phpcbf_executable_path": "/usr/bin/phpcbf",
"phpcs_executable_path": "/usr/bin/phpcs",
"phpmd_executable_path": "/usr/bin/phpmd",
"php_cs_fixer_executable_path": "/usr/bin/php-cs-fixer",
"phpcs_show_errors_on_save": false,
"phpcs_outline_for_errors": false,
"php_cs_fixer_on_save": true,
"phpcs_show_gutter_marks": false,
"phpcbf_on_save": false,
"phpcs_linter_run": true,
"phpcs_linter_command_on_save":true,
"phpmd_run":true,
"phpmd_command_on_save":true,
"show_debug":true
}
{
"color_scheme": "Packages/Material Theme/extras/PlainTasks/Material-Theme.hidden-tmTheme"
}
{
"additional_path_items":
[
"~/.composer/vendor/bin"
],
// prevent autocompletion on pressing ENTER
// "auto_complete_commit_on_tab": true,
// don't be smart
"detect_indentation": false,
"folder_exclude_patterns":
[
".git",
".idea",
"node_modules",
"storage/framework"
],
"afn_insert_dimensions": false,
"always_show_minimap_viewport": true,
/*"auto_complete_commit_on_tab": true,*/
"auto_wrap_width": 120,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.swf",
"*.jar",
"*.zip",
"node_modules/**",
"bower_components/**"
],
"bold_folder_labels": true,
"caret_extra_width": 2,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
/*"detect_indentation": false,*/
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"font_face": "Operator Mono Lig",//=>
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Package Control",
"Vintage",
],
"line_padding_bottom": 3,
"line_padding_top": 3,
"match_brackets": false,
"match_brackets_angle": false,
"match_brackets_braces": false,
"match_brackets_content": false,
"match_brackets_square": false,
"match_tags": false,
"material_theme_accent_indigo": true,
"material_theme_accent_scrollbars": true,
"material_theme_accent_titlebar": true,
"material_theme_small_statusbar": true,
"material_theme_small_tab": true,
"overlay_scroll_bars": "enabled",
"rulers":
[
80,
120
],
"scroll_past_end": true,
"tab_size": 4,
"theme": "Material-Theme.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space": true,
"trim_trailing_white_space_on_save": true,
"update_check": false,
"word_wrap": true,
"index_files": true,
}
{
"php_path": "/usr/bin/php",
"path": "/usr/bin/php-cs-fixer",
"config": "${folder}/php-cs-fixer.php",
"on_save": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment