DEV Community

My Sublime Text Setup for PHP

Andrew Davis on June 03, 2018

I have been using Sublime Text for coding in PHP for several months now and over that time have accumulated several useful plugins and editor setti...
Collapse
 
dev_nope profile image
Vasile Stefirta 🇲🇩 ✈️ 🇺🇸 • Edited

Hey Andrew,

Great article! 👏 I've been using sublime for a few years now and I really love it. Here are my user settings:

{
    "always_show_minimap_viewport": true,
    "bold_folder_labels": true,
    "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
    "font_face": "Source Code Pro Light",
    "font_size": 15,
    "ignored_packages":
    [
        "Vintage"
    ],
    "indent_guide_options":
    [
        "draw_normal",
        "draw_active"
    ],
    "line_padding_bottom": 5,
    "line_padding_top": 5,
    "overlay_scroll_bars": "enabled",
    "theme": "Material-Theme-Darker.sublime-theme",
    "translate_tabs_to_spaces": true,
    "tab_size": 4,
    "word_wrap": "false"
}

I really love the Material Theme in combination with the Source Code Pro Light font. Also, here are a few more packages I can recommend:

Collapse
 
restoreddev profile image
Andrew Davis

Definitely will check out the DotEnv extensions. Thanks for sharing your setup!

Collapse
 
perttisoomann profile image
Pert Soomann

Other than the age old tabs v spaces, which I can not get myself to change to stop using tabs, very good article :D

One very useful plugin I find helpful is "Function Name Display" - when in middle of class/function, it'll display the method name in status bar, so you don't have to scroll up on longer functions to see what part of the code you're modifying.

Collapse
 
prsion profile image
prsion • Edited

It is amazing text editor. If only he had a debugger like VScode and refactoring like PHPStorm than nothing else is needed at all. I have used PHPStorm (undoubtedly cool for a large team work), VScode -he is just good no more, and none of them does not bring such pleasure as SublimeText_3!!! It is Awesome!!!
Theme for SublimeText_3 - github.com/prsion/ThemesST3

Collapse
 
duyduong06 profile image
duyduong

i like default setting in subline text, and use a little plugin, i alway remote to server and code online with subline text.
pedicurespa.us

Collapse
 
troyclose profile image
Troy Close

Hey Andrew thanks for sharing. PSR-2 has been deprecated in favor of PSR-12 since you wrote this.

Collapse
 
goplon profile image
Artur • Edited

Hi! Thnks for post! I think you just forget comma after "highlight_line": 14