abbas.aniefa
abbas.aniefa

Reputation: 2905

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?

Upvotes: 5

Views: 4868

Answers (1)

Paresh Mayani
Paresh Mayani

Reputation: 128448

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.

Upvotes: 15

Related Questions