You can use this extension: https://marketplace.visualstudio.com/items?itemName=colch.quick-open-prefill-selection
Under Preferences -> Keyboard Shortcuts, you can bind extension.quickOpen.withPrefill to Ctrl+P when: editorHasSelection && editorTextFocus && !editorHasMultipleSelections