简体   繁体   中英

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?

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.

在此输入图像描述

For getting NEW files menu, press Alt + Insert .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM