Share IntelliJ inspection profile between different projects - intellij-idea

I have an inspection profile configured for one of my IntelliJ projects and have "Share profile" checked. When I'm in another project, the inspection profile I created is not available (doesn't appears in the dropdown combobox). Is there a way to create an inspection profile just once and use it across many projects?
I'm running IntelliJ 10.5.4.

Shared profile option means that it will be stored in the project and is shared with other developers via the project files. If you disable this option, inspections profile will be stored in IntelliJ IDEA configuration directory on your machine and you'll be able to use the same profile in multiple projects.
See also Inspections help section:
Share profile - Select this check box to make the selected profile available for your team, i.e to make it the project-level profile. If
you create IDE-level profile for your own purposes, clear this check
box.

Related

Directories in settings not showing when creating a web project in IntelliJ

When I create a web project in WebStorm, there is a directories option in Settings where I can set up my directory structure :
I am using IntelliJ Ultimate now, and apparently it is a superset of WebStorm, so I expect it to work exactly the same.
However after I create my web project, this "directories" option is missing.
How do I setup my directories for a web project in IntelliJ?
In IDEA, similar settings are available in the Project structure dialog (File | Project Structure, Ctrl+Alt+Shift+S in default keymap).
Unlike WebStorm, IDEA supports different kind of modules, facets, artifacts, its projects structure is much more complex, that's why a separate dialog is required to manage it

Default Configurations in Run Dashboard in IntelliJ

Whenever I create a new workspace in IntelliJ, I need to add the default types for enabling "Run Dashboard" in the workspace. This is very cumbersome for me as I have certain types of configurations which I want to be available in Run Dashboard of every workspace.
I would like to configure the defaults for Run Dashboard which I would want to be available in any new workspaces I create so that I do not have to enable the run dashboard individually for every new workspace I create. Is this possible in IntelliJ?
I am using version 2019.1 now (the same problem exists in older versions as well)

Separate IntelliJ settings for projects

I'm working on multiple projects at the moment and the fact that IntelliJ automatically synchronizes all settings makes life quite difficult for me.
For example, for project A I need to use a specific version of Maven with specific settings, for project B another version with other settings and for project C another version. This however isn't possible, when I set the Maven folder to something, it automatically syncs when I open a new IntelliJ.
This was just an example, there are more settings that I would like not to be shared.
Is there a way to resolve this?

SonarLint : What does SonarQube project option do?

I am using SonarLint plugin for IntelliJ and when setting this up it gives me the option to select a SonarQube project from the list of all SonarQube projects available as you can see in the picture below
What exactly does this do when I select a particular project as I am not exactly clear on this and it does not explain on the SonarLint main site?
Does it take the rules for the selected project and use these rules for any project I am working on in IntelliJ?
This option sets up "Connected Mode" so that, as you guessed, the rule set applied to your project matches the one on your server.
You explicitly connect a single workspace project to a single SonarQube project. The default rule set(s) will be used on un-connected projects.

Share checkbox in Run/Debug Configuration

What is the purpose of "Share" checkbox in the Run/Debug Configuration screen?
I thought it's a way to share this configuration between projects, but when I open a new project, I cannot find this config in a list of predefined configurations or similar list.
This check box for sharing Run/Debug Configuration between team members. Check the Share option in this guide for more details. Also read this answer.