tree-view-by-default

GPL-3.0 License

Stars
9

Tree View By Default

If you use document databases (like MongoDB), it is more convenient to preview the query results in Tree mode instead of the standard Table mode. Unfortunately, DataGrip does not provide any way to set Tree as default presentation mode, so you have to switch it manually every time.

This plugin comes to rescue!

What it does:

  • Changes default presentation mode of the query results to Tree
  • If there is only one result, it is automatically expanded
  • You can copy value of the leaf node without the containing JSON via Cmd+Option+C

It is recommended to use this plugin in DataGrip, but it should also work in other IDEs with database support.

The plugin is available in JetBrains marketplace: https://plugins.jetbrains.com/plugin/20941-tree-view-by-default

Demo