background preloader

Shortcuts

Facebook Twitter

SublimeText2. This is the best code editor out there.

sublimeText2

And it’s a wonder of modern computing that a single guy is able to create this great piece of software, by himself, for three very different operating systems. It’s the editor I use daily for my work. So I thought I’d write out some of the cool things it does, mainly so I can remember and refer to them and also hoping they will be of use to other people. Keyboard Shorcuts Command Palette Cmd-Shift-P Brings up the commands palette where all commands are listed. Example Cmd-Shift-P tabs Will find the Indentation: convert to tabs command which will convert all your spaces used for indentation to tabs and vice versa.

Another useful feature of the Command Palette is to choose the right page syntax. Cmd-Shift-P haml Should choose HAML from the syntax popup. Go to anything Cmd-P Go to anything. Cmd-P con/d/in Would bring up controllers/dvd/index.html.haml No more mouse needed, ever. Switch or choose Project. Search and replace. Vim provides the :s (substitute) command for search and replace; this tip shows examples of how to substitute.

Search and replace

On some systems, gvim has Find and Replace on the Edit menu (:help :promptrepl), however it is easier to use the :s command due to its command line history and ability to insert text (for example, the word under the cursor) into the search or replace fields. Basic search and replace Edit The :substitute command searches for a text pattern, and replaces it with a text string.

There are many options, but these are what you probably want: :%s/foo/bar/g Find each occurrence of 'foo' (in all lines), and replace it with 'bar'. :s/foo/bar/g Find each occurrence of 'foo' (in the current line only), and replace it with 'bar'. 5 Ways SublimeText Just Bodybags vim+Terminator. Call me a mouse-atheist.

5 Ways SublimeText Just Bodybags vim+Terminator

I love vim; it lets me do everything on the keyboard. In the time it takes for one to reach for their mouse, highlight a line to copy and paste, and Ctrl+C/Ctrl+V to copy in Word, I could type "yyp" in vim. My whole desktop is vimified: workspace and window management hotkeys, Vimperator on Firefox, Terminator hotkeys, and vim itself. vim is good for text editing, but it ain't good at some things that I have simply put up with for years. Two days ago, I tried out Sublime Text, and today I bought it. Here are five reasons why Sublime Text is just Frosted Flakes great. 5. vim compatability! Horray for filler items in list-based posts! To enable it, from your preferences, change "ignored_packages": ["Vintage"] to Some tweaks I had to make were having ctrl+f/ctrl+b going pageup/pagedown instead of search/building, making "u" be undo and not repeat/undo, and setting ctrl+r to be redo. 4.

Set and overwrite keybindings for anything you want. 3. My current plugin loadout: 2395c6. Handy command-line aliases and tricks. Help Advanced Search Page 1 of 6 123 ...

Handy command-line aliases and tricks

Last Results 1 to 10 of 51 Thread: Handy command-line aliases and tricks Quick Navigation Tutorials Top « Previous Thread | Next Thread » Bookmarks Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On [VIDEO] code is Off HTML code is Off Ubuntu Forums Code of Conduct. Table of keyboard shortcuts. In computing, a keyboard shortcut is a sequence or combination of keystrokes on a computer keyboard which invokes commands in software.

Table of keyboard shortcuts

Some keyboard shortcuts require the user to press a single key or a sequence of keys one after the other. Other keyboard shortcuts require pressing and holding several keys simultaneously (indicated in the tables below by this sign: +). Keyboard shortcuts may depend on the keyboard layout (localization). Comparison of keyboard shortcuts[edit] Keyboard shortcuts are a common aspect of most modern operating systems and associated software applications. General shortcuts[edit] A note regarding KDE's shortcuts is that they can be changed and the below list contains the defaults. [edit] Power management[edit] Buy - HyperDock. Alfred App. Mac Shortcuts Dojo (This should save you like an hour a day)