In Visual Studio 2022 there seems to be no way to disable the border around collapsed text, comments in particular.
This question was asked in 2011: Remove box around collapsed regions and summaries in Visual Studio . Yes, it is effectively a duplicate, but I would like to know if there has been some changes in the newer VS versions, or new extensions, which would allow customization of this rendering.