Search code examples
c#visual-studioapplication-settings.net-framework-version

How do I setup the Application Settings by code?


I'm using Visual Studio 2017, and I have a boat load of settings I'm adding. It's kind of a pain in the neck to add them by this Settings.settings table in VS. Is there a better way?


Solution

  • If you have the option of not using the default settings application behavior, or if you can use another bahavior in addition to it, perhaps it may help you:

    How to create a hand-made application settings file

    In this case, this may help you too:

    How to initialize user app data and document path

    So you can for example put this settings file in the user app data folder or anywhere you want.