Unfortunately I failed to reproduce the issue, it works as expected for me.
The issue can be caused by certain IDE settings. Could you please try restoring the default IDE settings and see if there are still issues? To restore IDE's settings, go to File | Manage IDE Settings | Restore Default Settings....
[Important]
A confirmation popup with a path to the backup file of your settings will be displayed. Make a note of this, as you'll be able to restore your settings from this backup file later.
To restore your settings, please choose File | Manage IDE Settings | Import Settings, specify a path to the backup directory, and click Open.
If you can’t find the path to the backup file, please check this article in our help. It has a list of paths to the backup directories for each OS.
Unfortunately I failed to reproduce the issue, it works as expected for me.
The issue can be caused by certain IDE settings. Could you please try restoring the default IDE settings and see if there are still issues? To restore IDE's settings, go to File | Manage IDE Settings | Restore Default Settings....
[Important]
A confirmation popup with a path to the backup file of your settings will be displayed. Make a note of this, as you'll be able to restore your settings from this backup file later.
To restore your settings, please choose File | Manage IDE Settings | Import Settings, specify a path to the backup directory, and click Open.
If you can’t find the path to the backup file, please check this article in our help. It has a list of paths to the backup directories for each OS.