I can get the second option to work ( select text + folding command )
But the first one is not working, at least not as expected.
I think this is a bug.
I have the following code:
I'm expecting that placing the cursor anywhere near those 3 lines and doing fold, will actually fold that given block. However it won't work if I place the cursor anywhere on the first or third line, it'll only work on the second line.