This sounds like a duplicate of the original topic. Typically, we just reply to the original topic so as to keep the all of the discussion focused in one place … so people don’t have to read 15 topics to find out what all has been said I’ll close the original though in this case because of the pretty picture
Any time you want to find the code behind a particular command, here is how you can do it:
Find the name of the command
If all you have is a keybinding, look in the Settings View under Keybindings (see image below)
If you have the name of a command in the command palette, here’s how you convert the command palette name to the command name:
One thing to keep in mind is that when you create a new command that works like you want, there is one edge case you’ll need to figure out how you want to handle. What if the editor view you want to move is the only one open? Does it duplicate the window in that case? Does it still move it, leaving an empty pane behind?
I also edited your post to create a Onebox of the link to the original topic. See my post here for how Oneboxing works: