Written by

Technical Consultant at Traverse Health
Question Muhammad Waseem · Jul 5, 2021

How to save server connection credentials in Visual Studio Code?

Hi,

Every time I have to enter password in Visual Studio Code. Is there any why to save the password in VSCode?

Thanks

Product version: IRIS 2020.1

Comments

Karunanithi Veerarajan · Jul 5, 2021

please try the below steps 

1) go to view -> command palette

2) select "Intersystems server manager: Store password in the key chain" from the list

3) click the + symbol on the right side

4) after that, enter unique definition name, IP address and port 

5) finally enter the username and password 

0
Mohan Kumar · Jul 5, 2021

Hi Muhammad,

Please follow below steps: (if it's personal instance)

1. Go to "Settings"

2. Search "InterSystems Server Manager"

3. Click "Edit in setting.json"

4. Edit

"intersystems.servers": {     
    "irishealth": {
        "webServer": {
            "scheme": "http",
            "host": "localhost",
            "port": 52773
        },
        "username": "_system",
        "password": "system"
    }
}

Add your password in json,

5. Save "settings.json"

Thanks,

0
John Murray  Jul 6, 2021 to Mohan Kumar

IMO storing a password in plaintext like this should only be used as a last resort, or when the password is the default one for a built-in username. In all other cases I recommend using Server Manager's ability to store the password in your workstation's keychain.

0