General
File | Settings | Editor | General for Windows and Linux
DataGrip | Settings | Editor | General for macOS
CtrlAlt0S
Use the General page of the Settings dialog to configure the editor behaviour and customize its view.
![Settings | Editor | General Settings | Editor | General](https://resources.jetbrains.com/help/img/idea/2024.3/db_settings_editor_general.png)
Item | Description |
---|---|
Mouse Control | |
Change font size with Ctrl/Command+Mouse Wheel | Enable this option to be able to change font size in the editor by rolling the mouse wheel while holding the Ctrl key.
This checkbox also allows you to change font size in quick documentation popup. |
Move code fragments with drag-and-drop | If this checkbox is selected, you can drag-and-drop code fragments in the editor. |
Soft Wraps | |
Use soft wraps in editor | If this checkbox is selected, soft wraps (or word wraps) are used in the editor. The horizontal scroll bar is not normally shown when this option is enabled. However, in certain cases, when a line cannot be "soft-wrapped", the horizontal scroll bar still appears (for example, if a line consists of a single string that is wider than the visible area.) |
Use the original line's indent for wrapped fragments | Select this checkbox to use custom indentation for soft wraps on resizing the editor or console. Use the Add additional indent field to specify the indent number. |
Only show soft-wrap indicators for the current line | If this checkbox is selected, the soft wrap characters Otherwise, soft wraps characters will be shown at the end of each line, and at the beginning of each next line. |
Virtual Space | |
Allow caret placement |
|
Show virtual space at the bottom of the file | If this checkbox is selected, the currently edited line (even if it is the final line) can be scrolled to the top of the screen. DataGrip adds the necessary number of virtual lines. |
Scroll Offset | Use this group of options to configure the number of context lines and rows you would like to see around the caret. Also set the minimal number of lines and rows to scroll when the caret gets off the screen. These settings might be helpful if you scroll or navigate in the large file and want to keep track of the caret line. They are also helpful when you use a monitor with vertical orientation. It works similar to Vim You can configure the following offset options:
|
Caret Movement | |
When moving by words | Use this list to configure where the caret should stop when moved by words. You can select from the following options:
|
Upon line break | Use this list to configure where the caret should stop on line breaks. You can select from the following options:
|
Scrolling | |
Enable smooth scrolling | If this option is enabled, the editor scrolls the page when you navigate to an element, instead of just jumping to the target location. |
Caret behavior |
|
Rich-Text Copy | |
Copy (Ctrl0C) as rich text | Select this checkbox to copy a rich text from the editor to any other editor that recognizes RTF. Otherwise, the IDE copies a plain text.
|
Color scheme for copied fragment | Use this list to select a color scheme for the text copy. You can select from the following options:
|
On Save | |
Remove trailing spaces on | Select the mode in which DataGrip will handle trailing spaces at the end of lines on file saving:
|
Keep trailing spaces on caret line | If this option is unselected, trailing spaces will be stripped on the line where the caret is placed on save operation. |
Remove trailing blank lines at the end of saved files | If this checkbox is unselected, DataGrip will keep the trailing blank lines on saving files. |
Ensure every saved file ends with a line break | Select this checkbox to have DataGrip automatically add an empty line at the end of a file during the save procedure. |
note
Significant trailing spaces that affect the output of a program are not removed where applicable. For example, trailing spaces in multiline strings in Groovy are not removed and so on.
Thanks for your feedback!