Showing posts with label shortcut. Show all posts
Showing posts with label shortcut. Show all posts

Monday, October 1, 2007

Creating a keyboard shortcuts cheat sheet for Visual Studio 2005

Most people don't know this, but there are actually over 450 keyboard shortcuts in Visual Studio by default. But there is no easy way to find out all the keyboard shortcuts inside Visual Studio. You can find out what all the default keyboard shortcuts are by writing a simple macro to enumerate all of them. The following shows the code for this.

Public Module Module1

Public Sub ListShortcutsInHTML()

'Declare a StreamWriter
Dim sw As System.IO.StreamWriter
sw = New StreamWriter("c:\\demo\\Shortcuts.html")

'Write the beginning HTML
WriteHTMLStart(sw)

' Add a row for each keyboard shortcut
For Each c As Command In DTE.Commands
If c.Name <> "" Then
Dim bindings As System.Array
bindings = CType(c.Bindings, System.Array)
For i As Integer = 0 To bindings.Length - 1
sw.WriteLine("<tr>")
sw.WriteLine("<td>" + c.Name + "</td>")
sw.WriteLine("<td>" + bindings(i) + "</td>")
sw.WriteLine("</tr>")
Next

End If
Next

'Write the end HTML
WriteHTMLEnd(sw)

'Flush and close the stream
sw.Flush()
sw.Close()
End Sub
Public Sub WriteHTMLStart(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("<html>")
sw.WriteLine("<head>")
sw.WriteLine("<title>")

sw.WriteLine("Visual Studio Keyboard Shortcuts")
sw.WriteLine("</title>")
sw.WriteLine("</head>")

sw.WriteLine("<body>")
sw.WriteLine("<h1>Visual Studio 2005 Keyboard Shortcuts</h1>")
sw.WriteLine("<font size=""2"" face=""Verdana"">")
sw.WriteLine("<table border=""1"">")
sw.WriteLine("<tr BGCOLOR=""#018FFF""><td
align=""center""><b>Command</b></td><td
align=""center""><b>Shortcut</b></td></tr>")


End Sub

Public Sub WriteHTMLEnd(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("</table>")
sw.WriteLine("</font>")
sw.WriteLine("</body>")
sw.WriteLine("</html>")
End Sub

End Module



To use this macro, go to Tools, select Macros, and then choose Macros IDE. . . to launch the Macros IDE. Expand the MyMacros project, MyMacros namespace and double-click on Module1. Simply copy Listing 1 to the Macros IDE and run the macro. After running the macro, you would have produced a keyboard shortcuts reference for Visual Studio. Open your output at C:\demo\Shortcuts.html. Figure 1 shows the partial output. Feel free to print it out and post it near your computer as you learn new keyboard shortcuts.

Friday, September 28, 2007

MicroSoft-PowerPoint

To create a new presentation file
CTRL+N

To open a presentation file
CTRL+O

To close a presentation file
CTRL+W

To save a presentation file
CTRL+S

To quit PowerPoint
ALT+F4

To when more than one window is open, switch to the next window
CTRL+F6

To switch to the previous window
CTRL+SHIFT+F6

To minimize a window to an icon
CTRL+F9

To maximize a selected window
CTRL+F10

To restore the size of the active window after you've minimized or maximized it
CTRL+F5

To move clockwise among panes of Normal View
F6

To move counterclockwise among panes of Normal View
SHIFT+F6

To switch between Slides and Outline tabs of the Outline and Slides pane in Normal View
CTRL+SHIFT+TAB

To select the next box in the e-mail header or the body of the message when the last box in the e-mail header is active
TAB

To select the previous field or button in the e-mail header
SHIFT+TAB

To open the Address Book
CTRL+SHIFT+B

To check the names on the To, Cc, and Bcc lines against the Address Book
ALT+K

To send the current presentation
ALT+S

To show or hide the grid
SHIFT+F9

To show or hide guides
ALT+F9

To change grid or guide settings
CTRL+G

To undo the last action
CTRL+Z

To repeat the last action
CTRL+Y

To perform the next animation or advance to the next slide
N, ENTER, PAGE DOWN, RIGHT ARROW, DOWN ARROW, or SPACEBAR (or click the mouse)

To perform the previous animation or return to the previous slide
P, PAGE UP, LEFT ARROW, UP ARROW, or BACKSPACE

To go to slide number
number+ENTER

To display a black screen, or return to the slide show from a black screen
B or PERIOD

To display a white screen, or return to the slide show from a white screen
W or COMMA

To stop or restart an automatic slide show
S or PLUS SIGN

To end a slide show
ESC, CTRL+BREAK, or HYPHEN

To erase on-screen annotations
E

To go to the next hidden slide
H

To set new timings while rehearsing
T

To use original timings while rehearsing
O

To use mouse-click to advance while rehearsing
M

To return to the first slide
1+ENTER (or press both mouse buttons for 2 seconds)

To redisplay hidden pointer and/or change the pointer to a pen
CTRL+P

To redisplay hidden pointer and/or change the pointer to an arrow
CTRL+A

To hide the pointer and navigation button immediately
CTRL+H

To hide the pointer and navigation button in 15 seconds
CTRL+U

To display the shortcut menu
SHIFT+F10 (or right-click)

To go to the first or next hyperlink on a slide
TAB

To go to the last or previous hyperlink on a slide
SHIFT+TAB

To perform the "mouse click" behavior of the selected hyperlink
ENTER while a hyperlink is selected

To perform the "mouse over" behavior of the selected hyperlink
SHIFT+ENTER while a hyperlink is selected

To go to the first or next hyperlink per slide
TAB

To go to the last or previous hyperlink per slide
SHIFT+TAB

To perform the "mouse click" behavior of the selected hyperlink
ENTER while a hyperlink is selected

To perform the "mouse over" behavior of the selected hyperlink
SHIFT+ENTER while a hyperlink is selected

To move forward through the hyperlinks in a Web presentation, the Address bar, and the Links bar
TAB

To move back through the hyperlinks in a Web presentation, the Address bar, and the Links bar
SHIFT+TAB

To perform the "mouse click" behavior of the selected hyperlink
ENTER

To go to the next slide
SPACEBAR

To go to the previous slide
BACKSPACE

To promote a paragraph
ALT+SHIFT+LEFT ARROW or SHIFT+TAB

To demote a paragraph
ALT+SHIFT+RIGHT ARROW or TAB

To move selected paragraphs up
ALT+SHIFT+UP ARROW

To move selected paragraphs down
ALT+SHIFT+DOWN ARROW

To show heading level 1
ALT+SHIFT+1

To expand text below a heading
ALT+SHIFT+PLUS SIGN

To collapse text below a heading
ALT+SHIFT+MINUS SIGN

To show all or collapse all text or headings
ALT+SHIFT+A

To move one character to the left
LEFT ARROW

To move one character to the right
RIGHT ARROW

To move one line up
UP ARROW

To move one line down
DOWN ARROW

To move one word to the left
CTRL+LEFT ARROW

To move one word to the right
CTRL+RIGHT ARROW

To move to the end of a line
END

To move to the beginning of a line
HOME

To move up one paragraph
CTRL+UP ARROW

To move down one paragraph
CTRL+DOWN ARROW

To move to the end of a text box
CTRL+END

To move to the beginning of a text box
CTRL+HOME

To move to the next title or body text placeholder (or to insert a new slide with the same layout as the current one if this is the last placeholder on the slide)
CTRL+ENTER

To repeat the last Find action
SHIFT+F4

To select one character to the right
SHIFT+RIGHT ARROW

To select one character to the left
SHIFT+LEFT ARROW

To select to the end of a word
CTRL+SHIFT+RIGHT ARROW

To select the beginning of a word
CTRL+SHIFT+LEFT ARROW

To select one line up
SHIFT+UP ARROW

To select one line down
SHIFT+DOWN ARROW

To select an object (with text selected inside the object)
ESC

To select an object (with an object selected)
TAB or SHIFT+TAB until the object you want is selected

To select text within an object (with an object selected)
ENTER

To select all objects
CTRL+A (on the Slides tab)

To select all slides
CTRL+A (in Slide Sorter View)

To select all text
CTRL+A (on the Outline tab)

To delete one character to the left
BACKSPACE

To delete one word to the left
CTRL+BACKSPACE

To delete one character to the right
DELETE

To delete one word to the right
CTRL+DELETE

To cut selected object
CTRL+X

To copy selected object
CTRL+C

To paste cut or copied object
CTRL+V

To undo the last action
CTRL+Z

To change the font
CTRL+SHIFT+F

To change the font size
CTRL+SHIFT+P

To increase the font size
CTRL+SHIFT+>

To decrease the font size
CTRL+SHIFT+<

To change the formatting of characters
CTRL+T (opens Font dialog box from Format menu)

To change the case of letters
SHIFT+F3 (toggles through sentence case, lowercase, and uppercase)

To apply bold formatting
CTRL+B

To apply an underline
CTRL+U

To apply italic formatting
CTRL+I

To apply subscript formatting (automatic spacing)
CTRL+EQUAL SIGN

To apply superscript formatting (automatic spacing)
CTRL+SHIFT+PLUS SIGN

To remove manual character formatting, such as subscript and superscript
CTRL+SPACEBAR

To copy formats
CTRL+SHIFT+C

To paste formats
CTRL+SHIFT+V

To center a paragraph
CTRL+E

To justify a paragraph
CTRL+J

To left align a paragraph
CTRL+L

To right align a paragraph
CTRL+R

To move to the next cell
TAB

To move to the preceding cell
SHIFT+TAB

To move to the next row
DOWN ARROW

To move to the preceding row
UP ARROW

To insert a tab in a cell
CTRL+TAB

To start a new paragraph
ENTER

To add a new row at the bottom of the table
TAB at the end of the last row

MicroSoft-Access

Bold
Ctrl-B

Builder
Ctrl-F2

Close
Ctrl-W

Close
Ctrl-F4

Copy
Ctrl-C

Cut
Ctrl-X

Cut current line and copy to Clipboard
Ctrl-Y

Cycle through sections
F6/Shift-F6

Cycle through tab of each object's type (forward)
Ctrl-Tab

Cycle through tab of each object's type (backward)
Ctrl-Shift-Tab

Database window
F11

Delete current record
Ctrl -

Edit/Navigation mode (toggle)
F2

Exit subform and move to next/previous field in next record
Ctrl-Tab/Shift-Tab

Extend selection to next/previous record
Shift-Dn/Up

Find
Ctrl-F

Find Next
Shift-F4

Find Previous
Shift-F3

GoTo
Ctrl-G

Insert current date
Ctrl ;

Insert current time
Ctrl :

Insert default value
Ctrl-Alt-spacebar

Insert new line
Ctrl-Enter

Insert value from same field in previous record
Ctrl '

Italics
Ctrl-I

Menu bar
F10

Move to beginning/end of multiple-line field
Ctrl-Home/End

Move to current field in first/last record (Navigation mode)
Ctrl-Up/Dn

Move to first field in first record (Navigation mode)
Ctrl-Home

Move to first/last field in current record (Navigation mode)
Home/End

Move to last field in last record (Navigation mode)
Ctrl-End
Move to left edge of page
Home or Ctrl-Left

Move to page number/record number box
F5

Move to right edge of page
End or Ctrl-Right

New (object)
Ctrl-N

New record (add)
Ctrl +

Next window
Ctrl-F6

Open
Ctrl-O

Open combo box
F4

Open in Design view
Ctrl-Enter

Paste
Ctrl-V

Print
Ctrl-P

Property sheet
Alt-Enter

Refresh combo box
F9

Replace
Ctrl-H

Requery underlying tables in subform
Shift-F9

Save
Ctrl-S

Save As
F12

Save current record
Shift-Enter

Screen left/right
Ctrl-PgUp/PgDn

Select/unselect column (Navigation mode)
Ctrl-spacebar

Spelling/Grammar check
F7

Switch between upper/lower panes
F6

Switch to Form view
F5

Turn on Move mode
Ctrl-F8

Underline
Ctrl-U

Undo
Ctrl-Z

Undo previous extension
Shift-F8

Zoom box
Shift-F2

Thursday, September 27, 2007

Adobe PhotoShop

m
Marquee Tool

l
Lasso Tool

j
Airbrush Tool

s
Rubber Stamp Tool

e
Eraser Tool

r
Blur Tool

p
Pen Tool

u
Measure Tool

k
Paint Bucket Tool

h
Hand Tool

v
Move Tool

w
Magic Wand Tool

b
Paintbrush Tool

y
History Brush Tool

n
Pencil Tool

o
Dodge Tool

t
Type Tool

g
Linear Gradient Tool

i
Eyedropper Tool

z
Zoom Tool

d
Default foreground and background colors.

x
Switches between foreground and background colors.

q
Switches between standard mode or quick mask mode.

f
Switches between screen modes.

TAB
Hides/Unhides open tools.

CTRL + N
New

CTRL + O
Open

CTRL + ALT + O
Open As

CTRL + W
Close

CTRL + S
Save

CTRL + SHIFT + S
Save As

CTRL + ALT + S
Save a Copy

CTRL + SHIFT + P
Page Setup

CTRL + P
Print

CTRL + K
Preferences > General

CTRL + Z
Undo

CTRL + X
Cut

CTRL + C
Copy

CTRL + SHIFT + C
Copy Merged

CTRL + V
Paste

CTRL + SHIFT + V
Paste Into

CTRL + T
Free Transform

CTRL + SHIFT + T
Transform > Again

CTRL + L
Adjust > Levels

CTRL + SHIFT + L
Adjust > Auto Levels

CTRL + ALT + SHIFT + L
Adjust > Auto Contrast

CTRL + M
Adjust > Curves

CTRL + B
Adjust > Color Balance

CTRL + U
Adjust > Hue/Saturation

CTRL + SHIFT + U
Adjust > Desaturate

CTRL + I
Adjust > Invert

CTRL + ALT + X
Extract

CTRL + SHIFT + N
New > Layer

CTRL + J
New > Layer Via Copy

CTRL + SHIFT + J
New > Layer Via Cut

CTRL + G
Group with Previous

CTRL + SHIFT + G
Ungroup

CTRL + SHIFT + ]
Arrange > Bring to Front

CTRL + ]
Arrange > Bring Forward

CTRL + [
Arrange > Send Backward

CTRL + SHIFT + [
Arrange > Send to Back

CTRL + E
Merge Down

CTRL + SHIFT + E
Merge Visible

CTRL + A
All

CTRL + D
Deselect

CTRL + SHIFT + D
Reselect

CTRL + SHIFT + I
Inverse

CTRL + ALT + D
Feather

CTRL + F
Last Filter

CTRL + SHIFT + F
Fade

CTRL + Y
Preview > CMYK

CTRL + SHIFT + Y
Gamut Warning

CTRL + +
Zoom In

CTRL + -
Zoom Out

CTRL + 0
Fit on Screen

CTRL + SHIFT + 0
Actual Pixels

CTRL + H
Hide Edges

CTRL + SHIFT + H
Hide Path

CTRL + R
Show Rulers

CTRL + ;
Hide Guides

CTRL + SHIFT + ;
Snap To Guides

CTRL + ALT + ;
Lock Guides

CTRL + "
Show Grid

CTRL + SHIFT + "
Snap To Grid

F1
Contents

Page Up/Down
Move view up/down 1 screen.

SHIFT + Page Up/Down
Nudge view up/down.

CTRL + Page Up/Down
Move view left/right 1 screen.

CTRL + SHIFT + Page Up/Down
Nudge screen left/right.

CTRL + SHIFT + Z
Previous History entry.

CTRL + ALT + Z
Next History entry.

SHIFT + -
Previous blending mode.

SHIFT + +
Next blending mode.

MicroSoft-Excel

F1
Help

F2
Edit Mode

F3
Paste Name Formula

F4
Repeat Action

F5
Goto

F6
Next Pane

F7
Spell Check

F8
Extend Selection

F9
Calculate All

F10
Activate Menu

F11
New Chart

F12
Save As

= (+)
Formula

Insert
Insert Mode

Delete
Clear

Home
Begin Row

End
End Row

Page Up
Page Up

Page Down
Page Down

Left Arrow
Move Left

Right Arrow
Move Right

Up Arrow
Move Up

Down Arrow
Move Down

Space Bar
Space

Tab
Move Right

Shift + F1
What's This Help

Shift + F2
Edit Comment

Shift + F3
Paste Function

Shift + F4
Find Again

Shift + F5
Find

Shift + F6
Prev Pane

Shift + F8
Add To Selection

Shift + F9
Calculate Worksheet

Shift + F10
Context Menu

Shift + F11
New Worksheet

Shift + F12
Save

Shift + Left Arrow
Select Left

Shift + Right Arrow
Select Right

Shift + Up Arrow
Select Up

Shift + Down Arrow
Select Down

Shift + Space Bar
Select Row

Shift + Tab
Move Left

CTRL + F3
Define Name

CTRL + F4
Close Window

CTRL + F5
Restore Window Size

CTRL + F6
Next Workbook

CTRL + F7
Move Window

CTRL + F8
Resize Window

CTRL + F9
Minimize Workbook

CTRL + F10
Restore Workbook

CTRL + F11
New Macro Sheet

CTRL + F12
Open

CTRL + A
Select All

CTRL + B
Bold

CTRL + C
Copy

CTRL + D
Fill Down

CTRL + F
Find

CTRL + G
Goto

CTRL + H
Replace

CTRL + I
Italics

CTRL + K
Insert Hyperlink

CTRL + N
New Workbook

CTRL + O
Open Workbook

CTRL + P
Print

CTRL + R
Fill Right

CTRL + S
Save

CTRL + U
Underline

CTRL + V
Paste

CTRL + W
Close Workbook

CTRL + X
Cut

CTRL + Y
Repeat Active

CTRL + Z
Undo

CTRL + ` (~)
Toggle Formula View

CTRL + 1 (!)
Cell Format

CTRL + 2 (@)
Toggle Bold

CTRL + 3 (#)
Toggle Italics

CTRL + 4 ($)
Toggle Underline

CTRL + 5 (%)
Toggle Strikethru

CTRL + 8 (*)
Outline

CTRL + 9 (()
Hide Rows

CTRL + 0 ())
Hide Columns

CTRL + -
Delete Selection

CTRL + [
Direct Dependents

CTRL + ]
All Dependents

CTRL + ; (semicolon)
Insert Date

CTRL + : (colon)
Insert Time

CTRL + /
Select Array

CTRL + \
Select Differences

CTRL + Insert
Copy

CTRL + Delete
Delete To End Of Line

CTRL + Home
Start Of Worksheet

CTRL + End
End Of Worksheet

CTRL + Page Up
Previous Worksheet

CTRL + Page Down
Next Worksheet

CTRL + Left Arrow
Move Left Area

CTRL + Right Arrow
Move Right Area

CTRL + Up Arrow
Move Up Area

CTRL + Down Arrow
Move Down Area

CTRL + Space Bar
Select Column

CTRL + Tab
Next Window

CTRL + BackSpace
Goto Active Cell

ALT + F1
Insert Chart Sheet

ALT + F2
Save As

ALT + F4
Quit Excel

ALT + F6
Switch To VBA

ALT + F8
Macro List

ALT + F11
VB Editor

ALT + D
Data Menu

ALT + E
Edit Menu

ALT + F
File Menu

ALT + H
Help Menu

ALT + I
Insert Menu

ALT + O
Format Menu

ALT + T
Tools Menu

ALT + W
Window Menu

ALT + -
Control Menu

ALT + = (+)
Auto Sum

ALT + ; (semicolon)
Select Visible Cells

ALT + ' (apostrophe)
Style

ALT + Page Up
Left 1 screen

ALT + Page Down
Right 1 screen

ALT + Down Arrow
Drop down list

ALT + Space Bar
Control Box

ALT + Tab
Next Application

Shift + Ctrl + F3
Names From Labels

Shift + Ctrl + F6
Prev Workbook

Shift + Ctrl + F12
Print

Shift + Ctrl + A
Formula Arguments

Shift + Ctrl + F
Font Name

Shift + Ctrl + O
Select Comments

Shift + Ctrl + P
Font Size

Shift + Ctrl + ` (~)
General Format

Shift + Ctrl + 1 (!)
Number Format

Shift + Ctrl + 2 (@)
Time Format

Shift + Ctrl + 3 (#)
Date Format

Shift + Ctrl + 4 ($)
Currency Format

Shift + Ctrl + 5 (%)
Percent Format

Shift + Ctrl + 6 (^)
Exponent Format

Shift + Ctrl + 7 (&)
Apply Border

Shift + Ctrl + 8 (*)
Select Region

Shift + Ctrl + 9 (()
Unhide Rows

Shift + Ctrl + 0 ())
Unhide Columns

Shift + Ctrl + -
No Border

Shift + Ctrl + = (+)
Insert dialog

Shift + Ctrl + [
Direct Precedents

Shift + Ctrl + ]
All Precedents

Shift + Ctrl + ; (semicolon)
Insert Time

Shift + Ctrl + ' (apostrophe)
Copy Cell Value Above

Shift + Ctrl + /
Select Array

Shift + Ctrl + \
Select Unequal Cells

Shift + Ctrl + Space Bar
Select All

Shift + Ctrl + Tab
Previous Window