Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl + N shortcut - Android Studio

In the android document I found Ctrl+N will create a new file. But when I try the same in my android studio it's opening exiting files.

Android Studio version : 0.8.2

Following is what I found in android docs

Creating new files

You can quickly add new code and resource files by clicking the appropriate directory in the Project pane and pressing CTRL+N (CMD+N, on Mac). Based on the type of directory selected, Android Studio offers to create the appropriate file type.

For example, if you select a layout directory, press CTRL+N, and select Layout resource file, a dialog opens so you can name the file (you can exclude the .xml suffix) and choose a root view element. The editor then switches to the layout design editor so you can begin designing your layout.

Am I missing anything?

like image 323
abbas.aniefa Avatar asked Jul 31 '14 04:07

abbas.aniefa


People also ask

What is the shortcut for Ctrl N?

Alternatively referred to as Control+N, ^n, and C-n, Ctrl+N is a keyboard shortcut most often used to create a new document, window, workbook, or other type of file.

How do I delete a line in Android Studio?

7. Delete Line at Caret/Cursor (CTRL+Y/Command+Y): If you want to delete the entire line, no need to select using a mouse or pressing backspace for the whole day. Just press CTRL+Y on Windows or Command+Backspace on Mac and you are good to go.

What is Ctrl Shift and N?

" control + shift + N " is system hotkey for opening 'Notepad'.


1 Answers

That documentation and given short cut might be old, not sure though! but as per the key reference given, Ctrl+N is used for navigating to the particular class.

enter image description here

For getting NEW files menu, press Alt + Insert.

like image 192
Paresh Mayani Avatar answered Sep 30 '22 14:09

Paresh Mayani