On my main project we use heavily the awesome log4net framework. It could be quite easily configured but for some advanced configuration I need to constantly check the documentation. I personally prefer to have all required knowledge on how write configuration in Visual Studio.
Fortunately VS allows to add intellisense support for custom configuration section (like log4net or whatever you want).
As configuration file is still XML, what you need is to provide the XSD schema to the editor. And you got intellisense do hard work for you. See how:
- Find configuration file.
- Open file for edit. Its properties window should be seen in the bottom right corner of the VS editor (default settings).
- Click on ‘Schemas’ row:
- You could see tons of already included XSD schemas that makes editing configuration file so playful! Click on “Add” to choose schema. I downloaded log4net XSD here beforehand.
Then you will see new schema now included into the configuration file schemas.
- The last this is to test it. Start typing app.
Looks like it work now. Great!
So this was a tip on how to include custom configuration section intellisense support.