-
-
Notifications
You must be signed in to change notification settings - Fork 398
Closed
Labels
Milestone
Description
Visual Studio Code Version : Version 1.10.0-insider (1.10.0-insider)
Code Settings Sync Version : 2.4.4
Operating System : macOS Sierra / Windows 10
Occurs On: n/a
Proxy Enabled: No
I think the new syncLocalSettings.json
's replaceCodeSettings
feature is fantastic.
A small improvement would be if you'd be able to just copy-paste between the two files. Example:
I have this in my settings.json
:
"python.pythonPath": "${env.HOME}/miniconda3/envs/pythondev_35",
"python.linting.pylintPath": "${env.HOME}/miniconda3/envs/pythondev_35/bin/pylint",
"python.linting.pep8Path": "${env.HOME}/miniconda3/envs/pythondev_35/bin/pep8",
"python.formatting.autopep8Path": "${env.HOME}/miniconda3/envs/pythondev_35/bin/autopep8",
"python.formatting.yapfPath": "${env.HOME}/miniconda3/envs/pythondev_35/bin/yapf",
Right now in order to get this into syncLocalSettings.json
you have to carefully reformat that into a list of dictionaries containing the name
and value
keys:
{
"replaceCodeSettings": [
{
"name": "python.pythonPath",
"value": "${env.HOME}/miniconda3/envs/pythondev_35"
},
{
"name": "python.linting.pylintPath",
"value": "${env.HOME}/miniconda3/envs/pythondev_35/bin/pylint"
},
{
"name": "python.linting.pep8Path",
"value": "${env.HOME}/miniconda3/envs/pythondev_35/bin/pep8"
},
{
"name": "python.formatting.autopep8Path",
"value": "${env.HOME}/miniconda3/envs/pythondev_35/bin/autopep8"
},
{
"name": "python.formatting.yapfPath",
"value": "${env.HOME}/miniconda3/envs/pythondev_35/bin/yapf"
}
]
}