S
S
Sergey2016-03-02 10:58:59
NetBeans
Sergey, 2016-03-02 10:58:59

Is there a way to hide code with comments?

For example, there is a block of code that I would like to collapse. I put some /**/ at the beginning of this code and something like that at the end and thus I get the opportunity to collapse everything that is inside. Is there such a possibility, and if so, in what editor?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri, 2016-03-02
@zeyser

in a storm you can https://www.jetbrains.com/phpstorm/help/folding-cu...
example

#region Description
$users = [];
// ... 
#endregion

and by the way, there are hotkeys for switching between them
https://www.jetbrains.com/phpstorm/help/navigating...

G
Gregory, 2016-03-02
@TMGLUK

They answered their own question. Sublime allows you to collapse tags. Comments - no.

A
Alexey Ukolov, 2016-03-02
@alexey-m-ukolov

PhpStorm can collapse block comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question