Code in a function to rewrite

Hello!

I work with the program 'Vers 5.0.2 PhpStorm'.
Is there the possibility in PhpStorm existing code in a function to rewrite?

Example:


bla bla bla bla bla
blub blub blub blub blub

------------------------------

private function(){
   bla bla bla bla bla
   blub blub blub blub blub
}

Your sincerly

Stephan

4 comments

Do you mean surround with function? Please try pressing Ctrl+Alt+T.

Kirill

0

Hello!

Thanks for the quick reply.
This is exactly what I was looking for.

Does PhpStorm the possibility for duplicate code search and outsource this to a Function?

Sincerely yours

Stephan

0

I'm looking for a tool that queries the name of the function and. The type of the function (public, protected, private)
Is there this tool in PhpStorm?

Sincerely yours

Stephan

0

Maybe Go to symbol (Ctrl+Alt+Shift+N) will help?

0

Please sign in to leave a comment.