Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the connection name in Azure Data Studio?

I noticed that in the context menu of any connection in Azure Data Studio, there is no rename option. Also, you cannot rename the connection in the Dashboard that opens when you click "Manage" in the mentioned above context menu. Is there any way to rename a connection created in Azure Data Studio?

like image 675
Dark Templar Avatar asked Jan 26 '23 00:01

Dark Templar


2 Answers

Dark Templar's answer works. But you can do it inside of Azure Data Studio by adding New Connection. That opens a sidebar on the right where you can select the connection and change the any of the fields down in Connection Details. Seems like you have to press Connect to save it.

like image 111
Thor Avatar answered Feb 11 '23 19:02

Thor


Figured out the solution. I'm on Ubuntu, and the file, where the information about connections is stored, is found in: ~/.config/azuredatastudio/User~/settings.json

Just edit the entries located in the "datasource.connections".

like image 38
Dark Templar Avatar answered Feb 11 '23 17:02

Dark Templar