Hi
When i open Web,config file it does not showing Comment/UnComment option in Toolbar
Thanks
Hi
When i open Web,config file it does not showing Comment/UnComment option in Toolbar
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Mar 29, 2023, 12:08 AM EDT
The option to comment or uncomment code in a web.config file may not be available in the default toolbar of the application or code editor you are using. However, you can still comment or uncomment code in the web.config file using keyboard shortcuts or by manually adding comment tags.
To comment or uncomment code using keyboard shortcuts, you can try the following:
Or you can open your web.config file in Visual Studio then
Right click on toolbar --> Customize --> Select Text Editor
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 28, 2023, 4:03 PM EDT
The Comment/Uncomment option in the toolbar of the Web.config file might not be visible because the editor being used to open the file does not support this feature. You can try using a different editor to open the Web.config file, such as Visual Studio or Notepad++, both of which support the Comment/Uncomment option in the toolbar. You can also manually comment or uncomment a section of code by adding or removing the XML comment tags () around the code.
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 29, 2023, 12:01 AM EDT
Hello Ramco,
Which VS version are you using ? upto 2017 in web.config file does not show comment/uncomment option in toolbar.
In visual studio 2019. when you open AppSetting.json then it will show comment/uncomment option in toolbar.