Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning Keyboard Shortcut to "Format, Unindent" 1

Status
Not open for further replies.

agbtech

Technical User
Nov 11, 2005
27
US
I would like to use Ctrl+A to select everything in a prg file and then use a keyboard shortcut to unindent everything instead of having to use the mouse to keep selecting the Format menu option and then 'unindent'.
Does anyone know how I would go about assigning a shortcut to the unindent menu option?
 
Shift+Tab

If you press Alt+Enter you could define the size of the indentation.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Thank you! Is there a shortcut for commenting and uncommenting? If not, can I set one?
 
just to point out obvious:
you don't need to press shift-F10. You very much like have the "context menu key" (next to your right "Window logo key") just for it.
 
I also have a laptop.
So where is the documentation about the shift F10?
 
'uncomment' and 'comment'?
You mean the fox help file?
 
Shift-F10 is the same as a right-click. At least in VFP9 the additional short cuts then available are indicated by an underlined letter.

Also try:
Code:
ON KEY LABEL F2 Keyboard "{BACKTAB}" Plain
ON KEY LABEL F3 Keyboard "{SHIFT+F10}{M}" Plain
ON KEY LABEL F4 Keyboard "{SHIFT+F10}{N}" Plain

My laptop does have a menu key, so there are at least four ways...

Brian
 
Agbtech,

You mean the fox help file?

No. I mean the Windows Help file.

The point is that Shift-F10 is a standard Windows key for invoking the right-click menu. It's got nothing to do with VFP.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
There's always an alternative - to comment/uncomment I use Alt-O then M or N. I found that less awkward than Shift-f10.

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top