![]() Place the caret on the object you want to rename and press Shift+F6 to invoke the Rename dialog for a directory, file, table, or column. To clear the history, click Clear in the dialog. Use Cmd/Ctrl+Shift+V to bring up the сlipboard history and then choose what you want to paste from it. Paste from History: Cmd/Ctrl+Shift+VĭataGrip keeps a record of the items you copy to the clipboard from the moment when you launch the IDE up until you close it. Hide/Restore all tool windows: Cmd/Ctrl+Shift+F12Ĭmd/Ctrl+Shift+F12 hides all tool windows and maximizes the editor tab to ensure that nothing will distract you from coding. You can apply formatting rules for alignment, wrapping, indentation, and much more. DataGrip can reformat selected blocks of source code, all code in the current file, or changes uncommitted to VCS.Ĭustomize your SQL code style in Preferences | Editor | Code Style | SQL. In the editor, select a code fragment you want to reformat and press Cmd+Opt+L/Ctrl+Alt+L. The Cmd+Shift+L/Ctrl+Shift+Q combination opens a new console way faster than you can do via the toolbar. Open new console: Cmd+Shift+L/Ctrl+Shift+Q Probably the best shortcut for peace of mind. You can open the search window with the needed scope right from the start: Tabįor those moments when you accidentally close the tab you need: Cmd/Ctrl+E brings up your history in DataGrip. And searching for ‘caret’ will also bring up items with ‘cursor’ in their name. Search Everywhere: Double-press Shiftĭouble-press Shift to open the search window, and just start typing! You can use abbreviations and synonyms in your search.įor instance, ‘ fa‘ is enough to find ‘ film_actor‘. Use Opt+Enter/Alt+Enter to open the list of suggestions and select an action from the list. By clicking a yellow bulb icon, you can view intention actions available in the current context. They cover a wide range of situations from warnings to optimization suggestions. This means that DataGrip has detected elements of your code that can be improved and is ready to make suggestions. You might have seen a yellow bulb icon in the editor. Show intention actions: Opt+Enter/Alt+Enter Set up a query suggestion list, choose how to view query results, choose how to show errors, and much more. Statements that you are going to execute are highlighted in a query editor.īy the way, you can customize query execution settings by clicking the Сustomize link. It always contains the option to run all the statements. If there are several statements, a list of suggestions appears and you can choose which one to execute. Press Cmd/Ctrl+Enter.ĭataGrip executes the whole statement or only the selection if you’ve highlighted a fragment of code. It can be a subquery or a group of statements. Execute statement: Cmd/Ctrl+EnterĬlick the statement or select the fragment of code that you want to execute. ![]() With that in mind, we’ve put together a list of our top-10 most useful DataGrip shortcuts. But they are not always easy to remember. They make coding faster and more efficient. You can capture memory snapshots automatically when the IDE runs out of memory.We love shortcuts. You can navigate to it from the notification balloon. Capture a memory snapshotĬlick Help | Diagnostic Tools | Capture Memory Snapshot.Īlternatively, press Ctrl+Shift+A, type capture memory, and select Capture Memory Snapshot. If these settings do not fix the problem, capture a memory snapshot, and send it to the JetBrains support team. If you are not sure what would be a good value, use the one suggested by DataGrip.Ĭlick Save and Restart and wait for DataGrip to restart with the new memory heap setting. ![]() For previous versions or if the IDE crashes, you can change the value of the -Xmx option manually as described in JVM options.ĭataGrip also warns you if the amount of free heap memory after a garbage collection is less than 5% of the maximum heap size:Ĭlick Configure to increase the amount of memory allocated by the JVM. The Change Memory Settings action is available starting from DataGrip version 2019.2. Restart DataGrip for the new setting to take effect. This action changes the value of the -Xmx option used by the JVM to run DataGrip. Set the necessary amount of memory that you want to allocate and click Save and Restart. If you are experiencing slowdowns, you may want to increase the memory heap.įrom the main menu, select Help | Change Memory Settings. The default value depends on the platform. The Java Virtual Machine (JVM) running DataGrip allocates some predefined amount of memory.
0 Comments
Leave a Reply. |