magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

Add possibility to call core functions in custom code and automate the import process

Open norgeindian opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I often have the following workflow:

  • I need a specific functionality from the core in my custom code
  • So I browse through the core modules until I found what I need, and now I need to import the class into my custom class
  • Currently, I'm now copying the fully qualified name of the class, include it manually in my constructor, initialize the property and then go to the spot where I actually need the functionality and call my found function.
  • This is a lot of manual work...

Describe the solution you'd like (*)

It would be awesome to have some kind of automatic copy/paste functionality for this issue. So I would love to have a custom copy shortcut, which I can use while I'm in the function which I want to import. Then I go back to my custom class and paste it. The class then gets automatically added to my constructor, the property is initialized and my function is directly called. This would save a lot of time.

norgeindian avatar Apr 15 '21 07:04 norgeindian

Hi @norgeindian. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Apr 15 '21 07:04 m2-assistant[bot]

@magento I am working on this

doninAtwix avatar Apr 12 '22 11:04 doninAtwix