Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| #! /bin/bash | |
| # ECHO COMMAND | |
| # echo Hello World! | |
| # VARIABLES | |
| # Uppercase by convention | |
| # Letters, numbers, underscores | |
| NAME="Bob" | |
| # echo "My name is $NAME" |
| # GET VERSION | |
| npm -v (or --version) | |
| # GET HELP | |
| npm help | |
| npm | |
| # CREATE PACKAGE.JSON | |
| npm init | |
| npm init -y (or --yes) |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
| "folder_exclude_patterns": | |
| [ | |
| ".git", | |
| "node_modules", | |
| ".vscode" | |
| ], |
| Listing globally installed NPM packages and version | |
| npm list -g --depth=0 | |
| Source: https://gist.github.com/brenopolanski/4aec3240bf30889576f9badd2e745fc3 | |
| ***** | |
| Uninstalling npm global packages | |
| npm uninstall -g <packagename> |
| var strokes = [], | |
| paths = document.getElementsByTagName("path"), | |
| j = 0; | |
| for (let i = 0; i < paths.length; i++) { | |
| strokes[i] = paths[i].getTotalLength(); | |
| paths[i].style.strokeDashoffset = paths[i].getTotalLength(); | |
| paths[i].style.strokeDasharray = paths[i].getTotalLength(); | |
| } |
Install Package Control for easy package management.
Ctrl+`
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
| { | |
| "auto_complete": true, | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_with_fields": true, | |
| "bold_folder_labels": false, | |
| "color_scheme": "Packages/Github Color Theme/GitHub.tmTheme", | |
| "default_encoding": "UTF-8", | |
| "detect_indentation": true, | |
| "folder_exclude_patterns": | |
| [ |
| 1. Emmet | |
| 2. Sass | |
| 3. Color Highlighter | |
| 4. HTML-CSS-JS Prettify | |
| 5. BracketHighlighter | |
| 6. SideBarEnhancements | |
| 7. SublimeLinter | |
| 7.1 SublimeLinter-html-tidy | |
| 7.2 SublimeLinter-csslint | |
| 7.3 SublimeLinter-jshint |