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.
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.
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.
Press Ctrl+Alt+S to open the IDE settings and select Plugins. and select Manage Plugin Repositories…. and specify your repository URL.
Persisting State of Components should answer your questions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With