IntelliSense for appsettings.json

James

The appsettings.json file is a common way to configure .NET apps. ASP.NET Core uses appsettings.json and appsettings.${Environment}.json files to configure some of its most frequently used features, including:

  • Database connection strings
  • Kestrel endpoints
  • HTTPS certificates
  • Logging
  • Host filtering

Visual Studio and Visual Studio Code (with C# extension 1.23.8 or later) now support IntelliSense of well known appsettings.json configuration settings. IntelliSense allows you to quickly edit your app’s configuration and get immediate feedback on available properties or typos.

IntelliSense for appsettings.json in action:

Image appsettings schema

There isn’t anything you need to do to enable this feature. Try it out today! Happy coding.

7 comments

Comments are closed. Login to edit/delete your existing comments