You can uninstall Code Sight whenever you wish.

  1. Start the IDE, then go to plug-in installation for the platform you are using.

    On Windows® or Linux® systems, the menu choice is FileSettings | PreferencesPlugins; on Mac® systems, the menu choice is IntelliJ IDEAPreferencesPlugins.

  2. In the Preferences dialog, go to the Installed tab.
    Figure 1. Code Sight among installed plug-ins

    Code Sight entry in Preferences dialog
  3. Click to highlight the entry for Code Sight (Security).

    In the page for Black Duck Code Sight, the location to the right, where the Install or Restart IDE buttons appeared, now there is a drop-down menu.

    Figure 2. The Uninstall button

    Unistall Code Sight
  4. Click the arrow open the drop-down menu, and choose Uninstall.
  5. The IDE prompts you to confirm your choice.
    Figure 3. Confirming uninstall
    Dialog to confirm uninstall
  6. Click Yes, then as you did when you installed the Code Sight plug-in, when prompted click Restart to restart the IDE so the change will take effect.
    Figure 4. Confirming restart
    Restart prompt

To clean up the Code Sight configuration files (IntelliJ)

Code Sight saves information in a folder with a number of configuration files. After you uninstall the plug-in, you might want to remove this. There is also a file that saves the current state of the plug-in.

  1. Open a command window or terminal.
  2. Remove the Black Duck desktop/ folder. The default location of this directory/folder depends on the operating system you are using. See the following table:
    Platform Location of Desktop directory/folder
    Linux or Mac /Users/<username>/.blackduck/desktop/
    Windows C:\Users\<Username>\AppData\Roaming\BlackDuck\desktop\

    Some sites install the desktop/ folder in a custom location. If it is not in the default location, consult your system administrator.

  3. Remove the code_sight_state.xml files.

    Code Sight generates a code_sight_state.xml file for each source-code project that you scan. Each of these files is saved in a directory/folder named .idea/, which is created inside the project folder for each project (code base) that you analyze by using Code Sight within IntelliJ.

  4. Remove the code_sight_plugin_state.xml files.

    There is one of these for each JetBrains IDE that you have installed. The default location depends on the operating system that you use. See the following table:

    Platform Location of Desktop directory/folder
    Linux ~/.config/JetBrains/<product><version>/config/options
    Mac ~/Library/Application Support/JetBrains/<product><version>/config/options
    Windows %APPDATA%\JetBrains\<product><version>\config\options\