March 2nd, 2021
0 reactions

IntelliSense for appsettings.json

Principal Software Engineer

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.

Author

James Newton-King
Principal Software Engineer

I build Aspire, web servers, and APIs with .NET

7 comments

Discussion is closed. Login to edit/delete existing comments.

Sort by :