RubyMine 7.0.1 Web Help

Generally, all the files that you create when developing applications are template-based. However, sometimes you may want to create empty files.

To create an empty file
  1. Do one of the following:
    • In the Project tool window, select the directory in which you want to create a new file, and then choose File | New on the main menu.
    • Right-click the corresponding directory and select New from the context menu.
    • Press Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCtrl+N or Ctrl+Enter⌘ N or Control EnterControl N or Control Enter⌘ N or Control EnterControl N or Control Enter
  2. Select File.
  3. In the New File dialog, in the field underEnter a new file name, type the file name and extension.

    You can specify the whole directory structure prepending the new file name. If the nested directories do not yet exist, they will be created:

    new_file

  4. Click OK.

    If the names of non-existent sub-directories were specified before the new file name, the whole structure will be created under the target directory:

    new_file_with_subdir

  5. If the extension you have specified is not associated with any of the file types recognized by RubyMine, the Register New File Type Association dialog is displayed. In this dialog, you can associate the extension with one of the recognized file types. To do that, select the file type under Open matching files in RubyMine and click OK. As a result, the extension is associated with the specified file type.

Tip

If there are no appropriate file types for the new extension, you may want to create a new file type and associate the extension with that type. For more information, see Creating and Registering File Types.

See Also

Procedures:

Reference:

Web Resources: