Sidebar enhancements adds more context menus to your sidebar: When I have many files open this does make the sidebar easier to work with. When working in projects with the sidebar visible, this simply highlights/scrolls the sidebar to show the current file you are editing. Just a note on this one, to get it working I had to edit /etc/php.ini and set display_errors = On to get it working in Mavericks. ![]() Very handy when debugging, and to find silly mistakes. This lets you have errors highlighted in your code as your type: I personally use SublimeLinter-PHP the most. DocBlockrĭocBlockr eases the creation of docblocks in your PHP code – simply type /** and hit enter when above a function or class and a blank docblock will be created ready to edit. I usually use it to align my arrays and variables nicely to keep code readable. This lets you hit COMMAND-CTRL-A to align your PHP code with spaces. There are many plugins/packages for SublineText to add features and tailor the experience to your work flow these are my favourites. Typing snippet in the command palette will show all snippets for the current scope along with their triggers.Sublime Text is a fantastic code editor – far superior and faster than editors I’ve used in the past such as Coda and Espresso.Typing code and ctrl+space will show it in the auto-complete menu.Typing codecap and pressing tab will activate the snippet/completion.If there are snippets and completions with the same triggers, snippets always have priority. In short type the trigger (or parts of it if it's unique) and press tab. There are tons of completion files for different languages and frameworks online and in package control. Note the trigger, the first part is the actual trigger and everything after \t is the hint that appears in the autocompletion list similar to snippet descriptions. Extension for snippets is sublime-snippet.Īctual snippet is in the content tag which supports new lines inside CDATA.įor example the Snippet for my Hugo shortcode codecaption (link). Files are stored in the User directory similar to config files (although packages can have their own snippets). Tools > Developer > New Snippet will create and open a template. Mainly as a result of 3, I went with completions because it's just one file and easier to manage (although harder to read). Only one snippet is allowed per file while you can have multiple completions in one file.Snippets are easier to read because you can have new lines in CDATA tags while you have to escape doublequotes and use special characters for new lines (e.g.Snippets are XML while Completions are JSON.Go to Preferences > Settings - Syntax Specific or edit package settings Markdown Extended.sublime-settings and add the following: This method only sets it for the current extension (e.g. View (menu) > Syntax > Open all with current extension as > Markdown Extended.Next you want to set all markdown files to be opened as Markdown Extended for syntax highlighting (including code blocks). This can be set by clicking on document type (bottom right). In order for it to kick in, the document type need to be set to Markdown Extended. It can be selected from Preferences > Color Scheme > Monokai Extended > Monokai Extended. Markdown Editing has its own color scheme. Copy from left pane to the right one and override. Left are the defaults settings and right is the user settings file. Main settings can be overridden in Preferences.sublime-settings or accessed via Preferences > Settings. Package settings on Windows are at %Appdata%\Sublime Text 3\Packages\User\package-name.sublime-settings. I usually copy from default file to user, remove the unneeded settings and override the rest. Settings can be opened via Preferences > Package Settings > Settings Default/User. User settings are used to override default ones. Generally sublime and each package have two types of settings, default and user. On Windows it will be "%Appdata%\Sublime Text 3\Packages\User\" (don't forget the double quotes if you want to just paste it into the run prompt). MarkdownTOC: Automatically generate clickable table of contents to markdown documents.Īfter installing packages, just copy the config files to the user package settings directory. ![]() Monokai Extended: Need this for the highlighting.Markdown Extended: Syntax highlighting. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |