The Rectangular Marquee is one that you will use on a daily basis particularly for slicing up psds.
Tip: The shortcut key for the Marquee Tool is ’M’. If you have the Photoshop window highlighted press M on the keyboard and this will select the Rectangular Marquee Tool.
With the Rectangular Marquee Selected click, hold and drag the mouse over the part of the image that you want to turn into an image for use on the web. Then copy the selection using Apple + C (CTRL + C on Windows). If you are using a layered .psd then it is important that you remember to copy all layers rather than just the selected one. To do this hit Apple + Shift + C (CTRL + Shift + C on Windows). Then hit Apple + N (CTRL + N on Windows) to bring up a new document.
You will note it automatically selects the size of the image you have copied. Paste the image you have copied into the new window using Apple + V (CTRL + V on Windows). Finally save this image for the web. To bring up the Save for Web screen hit Apple + Alt + Shift + S (CTRL + Alt + Shift + S on Windows).
This is a task that I perform on a daily basis so learning the keyboard shortcuts can really save you time.
Returning to your original image you will note that your selection is still selected. To remove the selection hit the deselect shortcut: Apple + D (CTRL + D on Windows).
Tip: I recommend using the Info box when you are making selections. To get this up hit F8. As you drag you will be able to see the size of your selection.
The Marquee tool has a number of options to help you get the precise selection. If you need a freehand selection though I recommend using the Lasso Tool. Playing with these tools is much better than describing them so I suggest you open Photoshop and see them in action.
In the menu bar at the top you will see a series of options:
A powerful use of the Marquee Tool is to combine it with the Free Transform. Lets say for example you have pasted your selection into a new image and you want to fill out the rest of it. You can use the Marquee tool to select an area of the image that you want to expand. Once you have selected it hit Apple + T (CTRL + T on Windows) and you will see it changes to a box. Drag the box so it appears as you want it to. Then hit return to confirm your selection. If you don’t like your selection hit escape.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Build your own Vim statusline
Statuslines in Vim are not hard to create. Making your own means one less dependency in your life.
Custom Vim Bindings in tmux 2.4
tmux 2.4 made a significant change to key bindings. Here is how to support custom keybindings for versions before and after tmux 2.4
Using template files in Vim
Vim templates or skeletons, allow you to specify a template to be used for new files with a certain extension.