Reputation:
When I press the hotkey CTRL
M
O
it does fold everything, is possible to don't fold comments?
Currently using Visual Studio
with c++
.
Upvotes: 1
Views: 435
Reputation: 121
In Visual C++ I do this
// comment line 1
;// comment line 2
;// comment line 3
Upvotes: 1
Reputation: 954
It is not possible, in Visual Studio for C++ projects.
You can check here: Outlining, there lists the all optional options for “collapse” and “expand”. Normally, there are five commands for “collapse” and “expand”:
1). Toggle Outlining Expansion Ctrl+M, Ctrl+M
2). Toggle All Outlining Ctrl+M, Ctrl+L
3). Stop Outlining Ctrl+M, Ctrl+P
4). Stop Hiding Current Ctrl+M, Ctrl+U
5). Collapse to Definitions Ctrl+M, Ctrl+O
but none of them meet your requirements, you can only expand(disable folding comments) them one by one.
You can suggest this feature to VS Product Team on Microsoft Developer Community.
Upvotes: 1