Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Intellij IDEA plugin. Store plugin settings

I am new at IDEA plugin development and I have a plugin that I need to support. Now there are some settings for this plugin. I want to create settings that will be stored at the project level, but I don't know how to do this.

I have created the UI part:

class SettingsPanel implements Configurable

but I don't understand how I can store some information on project level and use this information in my action for example. I want to show project folders structure at my settings panel and save selected folder name.

like image 333
Georgy Gobozov Avatar asked Nov 28 '12 10:11

Georgy Gobozov


People also ask

Where does IntelliJ IDEA store settings?

By default, IntelliJ IDEA stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.

How do I save IntelliJ config?

Alternatively, press Alt+Shift+F10 , then 0 . Select the run/debug configuration you want to share, enable the Store as project file option, and specify the location where the configuration file will be stored. If compatibility with IntelliJ IDEA 2019.3 and earlier is required, store the file in the default location.

How do I manage plugins in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Plugins. and select Manage Plugin Repositories…. and specify your repository URL.


1 Answers

Persisting State of Components should answer your questions

like image 157
Yann Cébron Avatar answered Oct 02 '22 01:10

Yann Cébron