{"id":1416,"date":"2020-06-15T09:20:27","date_gmt":"2020-06-15T09:20:27","guid":{"rendered":"http:\/\/blog.davcloud.top:1443\/?p=1416"},"modified":"2020-06-16T22:46:21","modified_gmt":"2020-06-16T14:46:21","slug":"configure-settings-in-vscode","status":"publish","type":"post","link":"https:\/\/blog.davcloud.top\/?p=1416","title":{"rendered":"Configure settings in VSCode"},"content":{"rendered":"\n<h2><strong>Abstract<\/strong><\/h2>\n\n\n\n<p>This article will record how to configure settings in VSCode.<\/p>\n\n\n\n<h2><strong>Introduction<\/strong><\/h2>\n\n\n\n<p> In VSCode, the settings can be divided into two levels, which are: <\/p>\n\n\n\n<ul><li> User Settings: Global settings for all the workspace. <\/li><li>Workspace Settings: Settings for current workspace only.<\/li><\/ul>\n\n\n\n<p>The workspace has higher priority, which will be applied when conflicting with the user settings.<\/p>\n\n\n\n<h2><strong>Part 1. Configure settings in UI<\/strong><\/h2>\n\n\n\n<h3><strong>Method 1. Use menu to open the settings in UI<\/strong><\/h3>\n\n\n\n<p>Click the File-&gt;Preferences-&gt;Settings on the menu to open settings in UI.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"562\" height=\"609\" src=\"https:\/\/blog.davcloud.top:1443\/wp-content\/uploads\/2020\/06\/vscode-menu-open-settings-ui.png\" alt=\"\" class=\"wp-image-1422\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-menu-open-settings-ui.png 562w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-menu-open-settings-ui-277x300.png 277w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/figure><\/div>\n\n\n\n<h3><strong>Method 2. Use command to open the settings in UI<\/strong><\/h3>\n\n\n\n<p>Press Ctrl + Shift + P, and then search \u201cPreferences: Open Settings (UI)\u201d option to open settings in UI.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"608\" height=\"71\" src=\"https:\/\/blog.davcloud.top:1443\/wp-content\/uploads\/2020\/06\/vscode-command-open-settings-ui.png\" alt=\"\" class=\"wp-image-1423\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-settings-ui.png 608w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-settings-ui-300x35.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/figure><\/div>\n\n\n\n<p>In the settings UI, you can edit both user settings and workspace settings by your requirement.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"968\" height=\"262\" src=\"https:\/\/blog.davcloud.top:1443\/wp-content\/uploads\/2020\/06\/vscode-settings-ui.png\" alt=\"\" class=\"wp-image-1424\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-settings-ui.png 968w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-settings-ui-300x81.png 300w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-settings-ui-768x208.png 768w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/figure><\/div>\n\n\n\n<h2><strong>Part 2. Configure settings in JSON file<\/strong><\/h2>\n\n\n\n<h3><strong>Modify user settings in JSON file<\/strong><\/h3>\n\n\n\n<p>Press Ctrl + Shift + P, and then search \u201cPreferences: Open Settings (JSON)\u201d option to open user settings in JSON.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"611\" height=\"112\" src=\"https:\/\/blog.davcloud.top:1443\/wp-content\/uploads\/2020\/06\/vscode-command-open-user-settings-json.png\" alt=\"\" class=\"wp-image-1425\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-user-settings-json.png 611w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-user-settings-json-300x55.png 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/figure><\/div>\n\n\n\n<h3><strong>Modify workspace settings in JSON file<\/strong><\/h3>\n\n\n\n<p>Press Ctrl + Shift + P, and then search \u201cPreferences: Open Workspace Settings (JSON)\u201d option to open workspace settings in JSON (placed in the folder &#8220;.vscode&#8221; in the workspace).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"608\" height=\"67\" src=\"https:\/\/blog.davcloud.top:1443\/wp-content\/uploads\/2020\/06\/vscode-command-open-workspace-settings-json.png\" alt=\"\" class=\"wp-image-1426\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-workspace-settings-json.png 608w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2020\/06\/vscode-command-open-workspace-settings-json-300x33.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/figure><\/div>\n\n\n\n<h2><strong>Finally<\/strong><\/h2>\n\n\n\n<p>Above are the methods to configure user or workspace settings in VSCode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract This article will record how to configure settings in VSCode. Introduction In VSCode, the settings can be divided into two levels, which are: User Settings: Global settings for all the workspace. Workspace Settings: Settings for current workspace only. The workspace has higher priority, which will be applied when conflicting with the user settings. Part [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[542],"tags":[122],"_links":{"self":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/1416"}],"collection":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1416"}],"version-history":[{"count":4,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/1416\/revisions"}],"predecessor-version":[{"id":1434,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/1416\/revisions\/1434"}],"wp:attachment":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}