CLion 2018.3 Help

Menus and toolbars

CLion menus and toolbars contain commands that affect the entire project or large sections of the project. To apply a command to the current context, use context-sensitive pop-up menus. Most of the commands has an associated keyboard shortcut to enable quicker access to it.

Use menu items with a checkbox in the View menu to show or hide the main elements of the CLion window. For example, if you want to show the main toolbar, select View | Toolbar.

cl mainwindow toolbar

Main elements of CLion window

  1. Main menu and toolbar - this area contains commands for opening and creating projects, code refactoring, running and debugging applications, keeping files under version control, and more.

  2. Navigation bar - this is a quick alternative to the Project tool window.

  3. Context menus - these menus are available with a right-click and contain commands applicable to the current context.

  4. Pop-up menus - these menus, available with Alt+Insert, contain commands applicable to the current context.

Tips and tricks

  • Show or hide the main elements of the CLion UI by using the View menu.

  • Descriptions of the actions from menus and toolbar buttons are displayed in the left side of the Status bar.

  • If you know which action you want to perform, but do not know where to find it, press Ctrl+Shift+A, type the action name, and select it from the suggestion list.

The Linux native menu

In CLion for Linux, you can use the Macintosh-style menu – a horizontal menu bar attached to the top of the screen.

Enable the native menu

  1. Press Ctrl+Shift+A to open the Find Action dialog, type Experimental features, and press Enter.

  2. Select the checkbox next to the linux.native.menu option, apply the changes, and close the dialog.

  3. Restart CLion.

Troubleshooting

The native menu is an experimental feature that may not work correctly with all Linux window managers. If your IDE doesn't start after you have enabled the native menu, disable it using the JVM options:

  1. Open the Toolbox App, click the Settings icon next to the necessary instance, and select Settings.

  2. Next to Java Virtual Machine options, click Edit.

  3. Add the following line to the file and save the changes:
    -Dlinux.native.menu.force.disable=true

  4. Start CLion.

  1. Create a copy the file with JVM options (options that are used to run CLion):

    <IDE_HOME>/bin/clion64.vmoptions (for the default 64-bit JVM)
    <IDE_HOME>/bin/clion.vmoptions (for optional 32-bit JVM)

  2. Insert the file copy to the configuration directory located in: ~/.<PRODUCT><VERSION>/config.

  3. Add the following line to the file and save the changes:
    -Dlinux.native.menu.force.disable=true

  4. Start CLion.

Last modified: 14 February 2019

See Also