user16872085
user16872085

Reputation:

How to disable folding comments in Visual Studio?

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

Answers (2)

casperbear
casperbear

Reputation: 121

In Visual C++ I do this

// comment line 1
;// comment line 2
;// comment line 3

Upvotes: 1

Yujian Yao - MSFT
Yujian Yao - MSFT

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

Related Questions