{"id":3705,"date":"2021-01-04T21:02:31","date_gmt":"2021-01-04T15:32:31","guid":{"rendered":"https:\/\/codingislove.com\/?p=3705"},"modified":"2021-01-05T12:06:01","modified_gmt":"2021-01-05T06:36:01","slug":"issue-format-code-vscode-shortcut","status":"publish","type":"post","link":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/","title":{"rendered":"Unable to format code in VSCode on MacOS using shortcut (solved)"},"content":{"rendered":"\n<p>I use VSCode as the preferred IDE always. I usually use the keyboard shortcut <code>Option + Shift + F<\/code> to format the code.<\/p>\n\n\n\n<p>I recently installed VSCode on a new Mac and this shortcut to format code in VSCode was not formatting the code but instead entering a weird character <code>\u00a0\u0330<\/code><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I tried many things to fix this issue by tweaking the shortcut preferences but nothing worked. Finally I found the solution to this issue!<\/p>\n\n\n\n<p>The issue was that I had set English &#8211; India as the input language while setting up Mac. Apparently English &#8211; India [ABC &#8211; India] doesn&#8217;t capture Option + Shift + F command so it wasn&#8217;t formatting the document.<\/p>\n\n\n\n<p>So I had to change the language to English &#8211; US and then the keboard shortcut to format document in VSCode started working.<\/p>\n\n\n\n<p><strong>System Preferences -> Keyboard -> Input Sources (tab) -> Change to English &#8211; US<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"912\" src=\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM-1024x912.png\" alt=\"unable to format code in vscode using shortcut\" class=\"wp-image-3711\" srcset=\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM-1024x912.png 1024w, https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM-300x267.png 300w, https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM-768x684.png 768w, https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png 1316w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If it still doesn&#8217;t work even after changing the language to English &#8211; US then remove English &#8211; India from the list completely in Input sources of keyboard preferences.<\/p>\n\n\n\n<p>Cheers!<\/p>\n<div style=\"margin-top: 15px; margin-bottom: 15px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>I use VSCode as the preferred IDE always. I usually use the keyboard shortcut Option + Shift + F to format the code. I recently&hellip; <\/p>\n","protected":false},"author":1,"featured_media":3711,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[28],"tags":[117,58,115,116],"class_list":["post-3705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quick-tips-for-developers","tag-developer","tag-development","tag-mac","tag-vscode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love\" \/>\n<meta property=\"og:description\" content=\"I use VSCode as the preferred IDE always. I usually use the keyboard shortcut Option + Shift + F to format the code. I recently&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\" \/>\n<meta property=\"og:site_name\" content=\"Coding is Love\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/codingislove\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ranjithkumar10\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-04T15:32:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-05T06:36:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1316\" \/>\n\t<meta property=\"og:image:height\" content=\"1172\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ranjith kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codingislove\" \/>\n<meta name=\"twitter:site\" content=\"@codingislove\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ranjith kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\"},\"author\":{\"name\":\"Ranjith kumar\",\"@id\":\"https:\/\/codingislove.com\/#\/schema\/person\/ecb142505163b016d59bfbe662af587e\"},\"headline\":\"Unable to format code in VSCode on MacOS using shortcut (solved)\",\"datePublished\":\"2021-01-04T15:32:31+00:00\",\"dateModified\":\"2021-01-05T06:36:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\"},\"wordCount\":187,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/codingislove.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png\",\"keywords\":[\"developer\",\"development\",\"mac\",\"vscode\"],\"articleSection\":[\"Quick tips for developers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\",\"url\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\",\"name\":\"Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love\",\"isPartOf\":{\"@id\":\"https:\/\/codingislove.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png\",\"datePublished\":\"2021-01-04T15:32:31+00:00\",\"dateModified\":\"2021-01-05T06:36:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage\",\"url\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png\",\"contentUrl\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png\",\"width\":1316,\"height\":1172},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Coding is Love\",\"item\":\"https:\/\/codingislove.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick tips for developers\",\"item\":\"https:\/\/codingislove.com\/category\/quick-tips-for-developers\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Unable to format code in VSCode on MacOS using shortcut (solved)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codingislove.com\/#website\",\"url\":\"https:\/\/codingislove.com\/\",\"name\":\"Coding is Love\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/codingislove.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codingislove.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codingislove.com\/#organization\",\"name\":\"Coding is Love\",\"url\":\"https:\/\/codingislove.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codingislove.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2015\/12\/codinglovenew.png\",\"contentUrl\":\"https:\/\/codingislove.com\/wp-content\/uploads\/2015\/12\/codinglovenew.png\",\"width\":300,\"height\":225,\"caption\":\"Coding is Love\"},\"image\":{\"@id\":\"https:\/\/codingislove.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/codingislove\/\",\"https:\/\/x.com\/codingislove\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codingislove.com\/#\/schema\/person\/ecb142505163b016d59bfbe662af587e\",\"name\":\"Ranjith kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codingislove.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f5486247269539c638227e6213187139cc7460eeb16d789fa757485f1d2b87f0?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f5486247269539c638227e6213187139cc7460eeb16d789fa757485f1d2b87f0?s=96&d=wavatar&r=g\",\"caption\":\"Ranjith kumar\"},\"description\":\"A CA- by education, self taught coder by passion, loves to explore new technologies and believes in learn by doing.\",\"sameAs\":[\"https:\/\/www.facebook.com\/ranjithkumar10\",\"https:\/\/www.instagram.com\/livin_on_d_edge\/\",\"https:\/\/www.linkedin.com\/in\/ranjithkumar10\",\"https:\/\/www.youtube.com\/c\/codingislove01\"],\"url\":\"https:\/\/codingislove.com\/author\/ranjithkumar10\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/","og_locale":"en_US","og_type":"article","og_title":"Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love","og_description":"I use VSCode as the preferred IDE always. I usually use the keyboard shortcut Option + Shift + F to format the code. I recently&hellip;","og_url":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/","og_site_name":"Coding is Love","article_publisher":"https:\/\/facebook.com\/codingislove\/","article_author":"https:\/\/www.facebook.com\/ranjithkumar10","article_published_time":"2021-01-04T15:32:31+00:00","article_modified_time":"2021-01-05T06:36:01+00:00","og_image":[{"width":1316,"height":1172,"url":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","type":"image\/png"}],"author":"Ranjith kumar","twitter_card":"summary_large_image","twitter_creator":"@codingislove","twitter_site":"@codingislove","twitter_misc":{"Written by":"Ranjith kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#article","isPartOf":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/"},"author":{"name":"Ranjith kumar","@id":"https:\/\/codingislove.com\/#\/schema\/person\/ecb142505163b016d59bfbe662af587e"},"headline":"Unable to format code in VSCode on MacOS using shortcut (solved)","datePublished":"2021-01-04T15:32:31+00:00","dateModified":"2021-01-05T06:36:01+00:00","mainEntityOfPage":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/"},"wordCount":187,"commentCount":3,"publisher":{"@id":"https:\/\/codingislove.com\/#organization"},"image":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage"},"thumbnailUrl":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","keywords":["developer","development","mac","vscode"],"articleSection":["Quick tips for developers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/","url":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/","name":"Unable to format code in VSCode on MacOS using shortcut (solved) - Coding is Love","isPartOf":{"@id":"https:\/\/codingislove.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage"},"image":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage"},"thumbnailUrl":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","datePublished":"2021-01-04T15:32:31+00:00","dateModified":"2021-01-05T06:36:01+00:00","breadcrumb":{"@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#primaryimage","url":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","contentUrl":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","width":1316,"height":1172},{"@type":"BreadcrumbList","@id":"https:\/\/codingislove.com\/issue-format-code-vscode-shortcut\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Coding is Love","item":"https:\/\/codingislove.com\/"},{"@type":"ListItem","position":2,"name":"Quick tips for developers","item":"https:\/\/codingislove.com\/category\/quick-tips-for-developers\/"},{"@type":"ListItem","position":3,"name":"Unable to format code in VSCode on MacOS using shortcut (solved)"}]},{"@type":"WebSite","@id":"https:\/\/codingislove.com\/#website","url":"https:\/\/codingislove.com\/","name":"Coding is Love","description":"","publisher":{"@id":"https:\/\/codingislove.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codingislove.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codingislove.com\/#organization","name":"Coding is Love","url":"https:\/\/codingislove.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codingislove.com\/#\/schema\/logo\/image\/","url":"https:\/\/codingislove.com\/wp-content\/uploads\/2015\/12\/codinglovenew.png","contentUrl":"https:\/\/codingislove.com\/wp-content\/uploads\/2015\/12\/codinglovenew.png","width":300,"height":225,"caption":"Coding is Love"},"image":{"@id":"https:\/\/codingislove.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/codingislove\/","https:\/\/x.com\/codingislove"]},{"@type":"Person","@id":"https:\/\/codingislove.com\/#\/schema\/person\/ecb142505163b016d59bfbe662af587e","name":"Ranjith kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codingislove.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f5486247269539c638227e6213187139cc7460eeb16d789fa757485f1d2b87f0?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f5486247269539c638227e6213187139cc7460eeb16d789fa757485f1d2b87f0?s=96&d=wavatar&r=g","caption":"Ranjith kumar"},"description":"A CA- by education, self taught coder by passion, loves to explore new technologies and believes in learn by doing.","sameAs":["https:\/\/www.facebook.com\/ranjithkumar10","https:\/\/www.instagram.com\/livin_on_d_edge\/","https:\/\/www.linkedin.com\/in\/ranjithkumar10","https:\/\/www.youtube.com\/c\/codingislove01"],"url":"https:\/\/codingislove.com\/author\/ranjithkumar10\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/codingislove.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-04-at-9.03.50-PM.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/posts\/3705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/comments?post=3705"}],"version-history":[{"count":6,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/posts\/3705\/revisions"}],"predecessor-version":[{"id":3713,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/posts\/3705\/revisions\/3713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/media\/3711"}],"wp:attachment":[{"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/media?parent=3705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/categories?post=3705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codingislove.com\/wp-json\/wp\/v2\/tags?post=3705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}