Content-Length: 286263 | pFad | https://github.com/nikoloza/articles/blob/master/devtools/sublime-goodies.md

7A articles/devtools/sublime-goodies.md at master · nikoloza/articles · GitHub
Skip to content

Latest commit

 

History

History
107 lines (75 loc) · 3.31 KB

sublime-goodies.md

File metadata and controls

107 lines (75 loc) · 3.31 KB

Sublime goodies for Front-end Developers

Introducing Sublime Text 3 tips and some goodies which always help me to write code in very comfortable workspace.


Exclude node_modules out of Sublime Text 3 searches:

It will skip searching files from folders from the following array (works for CMD+t as well)

"folder_exclude_patterns": [
  ".git",
  "node_modules",
  "bower_components",
  "dest",
  "build",
  "docs"
]

Note the "file_exclude_patterns" is also available.


Remove extra whitespaces on save:

Keep it clean!

"trim_trailing_white_space_on_save": true

Let it scroll more after the ending line:

Gives a screen sized extra scrollable area which is kinda cool

"scroll_past_end": true

===

Use snippets for writting shortcuts:

For writting console.log() with con + TAB.

Open up your Sublime Text 3 > Tools > New Snippet. Put this code there and save the file in the given directory by default:

<snippet>
    <content><![CDATA[console.log($1)$0]]></content>
    <tabTrigger>con</tabTrigger>
    <tabTrigger>log</tabTrigger>
    <scope>text.html,source.js</scope>
    <description>console.log()</description>
</snippet>

Continue adding by your own.


Use beautiful typeface to read your code:

Powerline offers several beautiful fonts for free. My favorite is Droid Sans Mono. Hack is also specially developer for source code.

"font_face": "Droid Sans Mono for Powerline"

Bigger line-height might make your code more readable:

"line_padding_bottom": 2,
"line_padding_top": 2

Reveal file in sidebar:

Open Preferences -> Key Bindings-User and paste this snippet (or you can change key formula):

[
    { "keys": ["ctrl+shift+k"], "command": "reveal_in_side_bar" }
]

Use Sublime Plugins

I've created a list of plugins, which I use frequently. I had created the repository Custom-Sublime-Look earlier, but now I'm gonna put it updated right here:

Recommended packages:

Syntax highlighs:

Must have tools:

Another great tools you can have:









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nikoloza/articles/blob/master/devtools/sublime-goodies.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy