Is there a shortcut for creating a new file?

I haven't seen any shortcut for creating "A New Text Document" or any file. Is there any?

0

8 Answers

Windows 7 and earlier:Alt+F, W, T works, regardless of whether the file or folder pane has focus.

Windows 8: This doesn't work in any more. Menu, w, t works as long as the file pane has focus.

Windows 10: Menu, w, t works as long as the file pane has focus and no file is selected. Press CONTROL-SPACE to clear the selected files (thanks @RogUE).

Windows 10 2nd Method: Alt+H, W, UP, UP, UP, ENTER. This works in even if a file is selected:

4

I wrote a script based on the suggestions to use AutoHotkey. If you want to change the .txt file extension, this requires Hide extentions for known file types to be off.

#IfWinActive, ahk_class CabinetWClass
#n:: ;If Windows+N is pressed in Windows Explorer
Send {Alt} ;Menu
Send f ;> File
Send w ;> New
Send t ;select Text Document
Send ^a ;select all
Exit

If you need any help with AutoHotkey, let me know. :)

5

The following works under XP (I don't have Windows 7):

  • make sure the Files (not Folders) pane has focus (Tab or F6 to get there).
  • make sure no file is selected (press CTRL+Space to unselect one file if necessary).
  • bring up either the File menu with Alt+F or the context menu with the context menu key or Shift+F10.
  • Press W for New, and T for Text Document.
5

It may be possible with a third party solution (haven't tested it, autokey is famous too), since it's not available in Windows 7's official keyboard shortcuts. You can create a new folder using Ctrl+Shift+N though.

I just tried the following on my Swedish Windows 7 machine and it works good. No need to install third party.

  1. Open folder
  2. Press ALT-key to display menubar
  3. A (Swe. Arkiv, Eng. File)
  4. N (Swe. Nytt, Eng. New)
  5. T (Swe. Textdokument, Eng. Textdocument)

Short: ALT, A, N, T

Right click (leave right click mouse button) then press 'W' (leave W) and finally press 'T' works with windows 8.1

I've been using this autohotkey script for ages.

; New text file
#IfWinActive AHK_CLASS #32770 Capslock & f11::
#IfWinActive AHK_CLASS CabinetWClass Capslock & f11:: ; make it work even though a file is previously selected Send {PgUp} ; Force select the first file Send ^{Space} ; Clear the selection Sleep 250 ; Remove delay if not required Send {AppsKey} ; Menu key Send w ; New Send t ; Text Document return
#IfWinActive
  • Works on file dialogs (save as / open file)
  • Works even though a file is selected
  • Works even though cursor is positioned off screen

Change "Capslock & f11" to your preferred shortcut.


To understand the syntax above, see below example,

; Syntax - To have the same hotkey subroutine executed by more than one variant, the easiest way is to create a stack of identical hotkeys, each with a different #IfWin directive above it. For example: ;#IfWinActive ahk_class Notepad ;#z:: ;#IfWinActive ahk_class WordPadClass ;#z:: ;MsgBox You pressed Win+Z in either Notepad or WordPad. ;return

Hope you find this useful!

Get AutoHotkey.

Then you need create or find a script for shortcut binding. For more, read the AHK tutorial.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like