I used to copy and paste code into a separate mind-mapping app, but I eventually developed a Visual Studio / VS Code extension to do this natively. It lets you jump to the linked code with a click on the node. This feature was a game changer in code navigation for me. For reference, the extension is called Code Mind Map (https://codemindmap.com/).