intellij-idea

Hide/cancel the "No data sources are configured to run this SQL" message in Intellij


I could not find any way to hide this warning in Intellij:

No data sources are configured to run this SQL and provide advanced code assistance

enter image description here

What is the magic combination of settings to make this go poof?


Solution

  • I had this for a typescript project, the following comment disables the warning for the specific line

    // noinspection SqlNoDataSourceInspection
    

    Other languages may have different notations but SqlNoDataSourceInspection should be the name for all.