Working with source code
When you work with code, DataGrip ensures that your work is stress-free. It offers various shortcuts and features to help you add, select, copy, move, edit, fold, and save code.
Configure autosave behavior
-
In the Settings/Preferences dialog (Ctrl+Alt+S), go to .
-
Under Synchronization, configure the following options:
Save files on frame deactivation (when you switch to a different application)
- Save files automatically if application is idle for N seconds
Mark files with unsaved changes
-
In the Settings/Preferences dialog (Ctrl+Alt+S), go to .
Select the Mark modified tabs with asterisk checkbox.
Revert changes
For the most recent changes, open the Edit menu and click Undo, or press Ctrl+Z.
For a more detailed view of past changes, use Local History.
For the most robust tracking of all changes, use a version control system supported in DataGrip.