RubyMine 2017.2 Help

Opening and Reopening Files in the Editor

Opening files for editing

To open a file for editing

  1. Do one of the following:
    • Double-click the desired file in one of the Tool Windows.
    • Select the desired file in one of the Tool Windows and press F4.
    • Select the desired file in the one of the Tool Windows and choose Jump to Source on the context menu.
    • Use the Navigate command for a Class, File, or Symbol.
    • Click the desired directory in the Navigation bar, and select file from the drop-down list:
      /help/img/idea/2017.2/rm_navbar.png
  2. If the file type is registered, the file opens silently in RubyMine's editor.

    If the file type is registered under the category Files opened in associated applications, it will be opened in its associated application, rather than in the RubyMine editor. By default, RubyMine suggests a number of such file types, for example .doc, .chm, or .pdf.

    If the file type is unknown, RubyMine suggests to choose whether you want to register a new file type, or open such file in its associated application. Specify your choice in the Register New File Type Association dialog box:

    /help/img/idea/2017.2/ruby_RegisterFileType.png

    You can register the required file types on the File Types page of the Settings/Preferences dialog.

The maximum size of files parsed by RubyMine is controlled by the idea.max.intellisense.filesize setting in idea.properties file.

The idea.properties file located in the bin directory of the RubyMine installation folder should not be edited. Instead of editing the original idea.properties file, create an idea.properties file in the following location, open it for editing and add the required properties:

  • For Windows: %\USERPROFILE%\\.RubyMine\config
  • For *NIX: ~/.RubyMine/config
  • For macOS: ~/Library/Preferences/RubyMine/config

Note that the larger the file is, the slower its editor works and the higher overall system memory requirements are.

Opening external files

Do one of the following:

  • Choose File | Open on the main menu and select the desired file in the dialog box that opens.
  • Drag the required file from the Explorer (Windows), File Browser (Linux), or Finder and drop it to the editor. The file opens for editing in a new tab.

Reopening files

To reopen a file

  • To open a recently opened file, choose View | Recent Files on the main menu or press Ctrl+E. Then select the desired file from the Recent Files pop-up window, that opens.
    /help/img/idea/2017.2/rm_recentFiles.png
  • To open a recently updated file, on the main menu, choose View | Recently Changed Files or press Ctrl+Shift+E. Then select the desired file from the Recently Edited Files pop-up window, that opens.

Opening invisible files in macOS

To open invisible files in macOS, follow these general steps:

  1. Launch RubyMine in internal mode:
    1. Close RubyMine, if it is running.
    2. Open file /Applications/RubyMine.app/Contents/Info.plist
    3. In the section Java | VMOptions, append -Didea.is.internal=true.
    4. Save Info.plist and launch RubyMine.

    In internal mode, the Tools menu shows item Internal Actions.

  2. Open Tools | Internal Actions | Registry and select the check box ide.mac.filechooser.showhidden.files. Thus invisible files will appear in the file chooser dialog box.

Opening files in a separate window

To open a file in a separate RubyMine window

Do one of the following:

  • Drag and drop an editor tab outside of the current RubyMine window.
  • Press Shift+F4 for a file selected in the Project tool window.
  • Shift+mouse double click on a file name in the Project tool window.
Last modified: 26 October 2017

See Also