DWoldrich
DWoldrich

Reputation: 4017

Disable Go To Declaration just for .SQL files in JetBrains IDEs

Is there a way in JetBrains products to disable Go to Declaration (Ctrl/Cmd + Click, Ctrl/Cmd + B) specifically and only for .sql files? I am running the latest JetBrains Rider, if that matters.

I am managing a fleet of SQL files with RedGate Flyway and editing them in Rider. I use command line tooling to migrate my SQL scripts to a local database whenever I want to test.

To get rid of red marks, I am having Rider inspect the current state of the local DB and syntax highlight and give completions to the symbols onscreen. Rider does a great job of this, but of course, if I Cmd + Click any highlighted symbols, I will navigate to a database object rather than source code in my project. I am operating with muscle memory and I don't realize the switcheroo and suddenly I am merrily editing database objects that look just like my Flyway sources and I get confused when my migrations and unit tests on my local continue to fail because I'm clobbering my edits when the command line tools run, etc.

I want Cmd + Click for all other file types to work as usual, but have it disabled for SQL. Please send help.

Upvotes: 2

Views: 80

Answers (0)

Related Questions