Needless to say, VS Code terminal is very convenient, but by default, using shortcuts such as Ctrl + p makes shortcuts on the VS Code side work, which is too inconvenient. By setting as follows, a specific shortcut can be prioritized on the terminal side.
Open the VS Code Command Palette (Shift + Ctrl + p for Windows / Linux) and open the Keyboard Shortcuts settings. (You can also use Ctrl + k-> Ctrl + s as shown) (To be on the safe side, ⌘ + Shift + p on macOS)
When the shortcut list is displayed, search the search window at the top for the shortcut you want to prioritize the operation on terminal. The example below finds Ctrl + e. (Ctrl + e is a shortcut that jumps to the end of the input with shell, isn't it?)
Open the context menu (right-click menu) for the desired shortcut and edit "When Expression". Enter the watchword "! TerminalFocus" here to "ignore when in terminal".
Go to terminal, press the shortcut you set, and make sure the focus isn't shifting to VS Code.