Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ax3lst's avatar

Sublime Text - Your favorite package

I am always searching for good ST3 packages. My Idea is that you say the name of your favorite package and then write a very short description about it.

I start with Emmet.

With Emmet you can write little snippet's like this(I know this isn't ):

html:5>(div.nav>ul.nav>li.nav*4>a[href="#"]{$})+(div.content>h1{Hello World}>div.posts>div.post*2>h3.post+p.post>lorem)+(div.footer>p.footer{Copyleft})

And Emmet "transforms" it into this:

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>Document</title>
</head>
<body>
 <div class="nav">
    <ul class="nav">
   <li class="nav"><a href="#">1</a></li>
   <li class="nav"><a href="#">2</a></li>
   <li class="nav"><a href="#">3</a></li>
   <li class="nav"><a href="#">4</a></li>
    </ul>
 </div>
 <div class="content">
    <h1>Hello World
   <div class="posts">
    <div class="post">
        <h3 class="post"></h3>
        <p class="post">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis enim nesciunt, impedit esse doloremque. Ipsum aspernatur quae, exercitationem, neque expedita earum dolorem officia illo placeat culpa reprehenderit minima laboriosam recusandae.</p>
    </div>
    <div class="post">
        <h3 class="post"></h3>
        <p class="post">Eligendi dolorum, maiores officia saepe libero, nam nostrum nesciunt, dolorem impedit cupiditate id debitis? Blanditiis recusandae necessitatibus, iure consequatur perspiciatis. Quasi labore vel, impedit cupiditate temporibus nostrum explicabo omnis ex.</p>
    </div>
   </div>
    </h1>
 </div>
 <div class="footer">
    <p class="footer">Copyleft</p>
 </div>
</body>
</html>
0 likes
10 replies
RobinMalfait's avatar

Shameless plug: https://sublime.wbond.net/packages/Paste%20Laravel

You can select text and press cmd+p or just press cmd+p without selecting anything and it will put your code to laravel.io/bin and copy the url into your clipboard and opens a browser!

You can also configure some stuff like show comment sections, open in browser, copy to clipboard, and also a little footer message :)

3 likes
RobinMalfait's avatar

@ax3l of course!

This is the settings file:

{
    "show_paste_by": "// Pasted by MalfaitRobin",
    "open_in_browser": true,
    "signature": "",
    "show_file_name": true,
    "show_section_comments": true
}

And this is the default keyboard settings file:

[
    {
        "keys": ["super+alt+p"], "command": "pastelaravel"
    }
]

The repo is here, with defaults: https://github.com/RobinMalfait/Laravel-paste

Prullenbak's avatar

I like emmet and sidebarenhancements as well. Also AdvancedNewFile works great together with the sidebarenhancements. I like Blade snippets and Blade highlighter a lot. Also, I was happy to find Blade Spacer. It puts spaces between {{ and }} automatically. These three together make writing blade views a lot faster and more enjoyable.

1 like
corexian's avatar

The first 7 on this list are pretty much the most used packages for me: http://www.neverstopbuilding.com/sublime-plugins-for-php

Also, I'd add Sublime CodeIntel, anything from wbond, and the various Tidy packages (CSS tidy, HTML tidy, and I think there's a separate one for HTML5). VCS Gutter is one I just learned about that I'm enjoying as well.

isimmons's avatar

sidebarenhancements, html5, Laravel Blade Highlighter, Emmet(of course), Gitgutter, and my new favorite I just started using yesterday is docblockr. So much easier to hit '/** + enter' to set the docblocks.

austenc's avatar

@Prullenbak - Happy to see someone using my Blade Spacer package! I've recently found a few issues with it (mostly related to multiple cursors) which I'll be fixing ASAP.

1 like

Please or to participate in this conversation.