This video explains how to create a custom connector using Visual studio. Deploy to Power Platform and debug it locally.
Blog
https://powerapps.microsoft.com/en-us...
Visual Studio Preview
https://learn.microsoft.com/en-us/vis...
Create and remove tunnel from Visual Studio
https://learn.microsoft.com/en-us/asp...
VS Connected Service
https://learn.microsoft.com/en-gb/pow...