bind hotkey to custom method (creating GameObject with custom component)

actually the whole question described in the title:
how can i create in editor my custom gameobject by pressing only one hotkey

The menu item atribute should do the trick for you.

On the menu item you can specify a shortcut.
There is even a example for creating a gamobject on the documentation page.

thanks for advice, but you have understood me wrong. i even wouldn’t ask if it was that simple. i have a menu item, that opens custom window with button in it. this button creates custom object with parameters that setted in this window. i want to create my custom object with default parameters, by pressing given hotkey, without opening this window

You can make your own editor script and listening to the input events.

That way you do not need to open a window and just create your custom object on the press of a button (or a button combination)

thanks a lot for help))