{"id":547,"date":"2025-01-24T13:09:36","date_gmt":"2025-01-24T16:09:36","guid":{"rendered":"https:\/\/difusao.tech\/blog\/?p=547"},"modified":"2025-01-24T13:09:37","modified_gmt":"2025-01-24T16:09:37","slug":"abrir-vs-code-pela-linha-de-comando","status":"publish","type":"post","link":"https:\/\/difusao.tech\/blog\/abrir-vs-code-pela-linha-de-comando\/","title":{"rendered":"Abrir VS Code pela linha de comando"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"250\" height=\"229\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/image-27.png\" alt=\"\" class=\"wp-image-553\" style=\"width:312px;height:auto\"\/><\/figure>\n<\/div>\n\n\n<p>Abrir o VS Code pelo PowerShell, CMD, Windows Terminal ou Git Bash.<\/p>\n\n\n\n<p>Caso o seu VS Code n\u00e3o esteja abrindo com o comando code . voc\u00ea deve configurar a <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">vari\u00e1vel de ambiente<\/mark> para que reconhe\u00e7a o comando.<\/p>\n\n\n\n<p>Tecla do <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">windows + Pause Break<\/mark> para abrir as configura\u00e7\u00f5es, depois clique em <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">Configura\u00e7\u00f5es avan\u00e7adas do sistemas<\/mark>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"394\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0001-1024x394.png\" alt=\"\" class=\"wp-image-548\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0001-1024x394.png 1024w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0001-300x115.png 300w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0001-768x295.png 768w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0001.png 1262w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Depois clique em <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">Vari\u00e1veis de Ambiente<\/mark> na janela que abriu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"464\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0002.png\" alt=\"\" class=\"wp-image-549\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0002.png 414w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0002-268x300.png 268w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/figure>\n\n\n\n<p>Selecione <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">Path<\/mark> em vari\u00e1veis de usu\u00e1rio e depois no bot\u00e3o <mark style=\"background-color:#abb8c3\" class=\"has-inline-color\">Editar<\/mark>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"586\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0003.png\" alt=\"\" class=\"wp-image-550\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0003.png 615w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0003-300x286.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>Clique no bot\u00e3o Novo e coloque o caminho do VS Code, ser\u00e1 algo como isso:<\/p>\n\n\n\n<p>%USERPROFILE%\\AppData\\Local\\Programs\\Microsoft VS Code\\bin<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"494\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0004.png\" alt=\"\" class=\"wp-image-551\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0004.png 526w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/0004-300x282.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/figure>\n\n\n\n<p>OK em todas as janelas, feche o PowerShell e teste novamente.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"83\" src=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/image-26.png\" alt=\"\" class=\"wp-image-552\" srcset=\"https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/image-26.png 494w, https:\/\/difusao.tech\/blog\/wp-content\/uploads\/2025\/01\/image-26-300x50.png 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Abrir o VS Code pelo PowerShell, CMD, Windows Terminal ou Git Bash. Caso o seu VS Code n\u00e3o<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[67,189,257,36,37,256],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","category-windows","tag-cmd","tag-powershell","tag-variavel-de-ambiente","tag-vs-code","tag-vscode","tag-windows-terminal"],"_links":{"self":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":1,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/posts\/547\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/difusao.tech\/blog\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}