Changing the default path of Visual Studio Code's integrated terminal - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/43305050/changing-the-default-path-of-visual-studio-codes-integrated-terminal) (https://cdn.sstatic.net/Shared/stacks.css?v=bd2aba62c5a4) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=7d8876444382) (Feed for question 'Changing the default path of Visual Studio Code's integrated terminal') (/feeds/question/43305050) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) (2.0) Sign up with Google Sign up with GitHub OR (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f43305050%2fchanging-the-default-path-of-visual-studio-codes-integrated-terminal) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f43305050%2fchanging-the-default-path-of-visual-studio-codes-integrated-terminal) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f43305050%2fchanging-the-default-path-of-visual-studio-codes-integrated-terminal) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f43305050%2fchanging-the-default-path-of-visual-studio-codes-integrated-terminal) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven api linq qt dictionary unit-testing facebook asp.net-core tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github elasticsearch spring-mvc kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers machine-learning google-sheets c++11 security flask google-apps-script ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join laravel-5 rust winapi url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 web logging dom swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory canvas audio multidimensional-array jsf random vector cookies redux facebook-graph-api input flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce routes razor azure-devops awk servlets mod-rewrite beautifulsoup docker-compose excel-formula iframe filter aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning import sass memory-management error-handling async-await dynamic eloquent soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split mysqli cmd django-views encoding database-design automation collections netbeans hash build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing java-8 react-redux jestjs service html-table neo4j lua ansible parameters module material-ui enums visual-studio-2012 promise flexbox outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive tfs scipy count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js constructor powerbi rxjs graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth datagridview terraform drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface google-api angular-material casting jmeter linked-list path proxy timer django-templates arduino orm directory visual-studio-2015 parse-platform windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview visual-studio-2013 gitlab vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process rspec pygame properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query nhibernate responsive-design angularjs-directive expo request azure-functions bluetooth 3d dns binding reference discord.js architecture playframework version-control pyqt doctrine-orm package pycharm get sql-server-2012 rubygems f# autocomplete datepicker openssl kendo-ui tree jackson controller yii grep nested xamarin.ios static dockerfile statistics transactions datagrid null active-directory uiviewcontroller phpmyadmin webforms discord.py notifications sas computer-vision duplicates mocking youtube nullpointerexception yaml menu sum bitmap electron asp.net-mvc-5 visual-studio-2008 time-series blazor yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla navigation cors devise anaconda background camera multiprocessing pyqt5 binary frontend cuda linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose android-asynctask microsoft-graph-api tabs laravel-4 insert uicollectionview environment-variables amazon-dynamodb linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system vuejs3 mockito localization xml-parsing macros formatting json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js nosql format azure-pipelines nestjs odoo jquery-plugins db2 jenkins-pipeline leaflet event-handling postman flutter-layout julia annotations keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone dom-events azure-web-app-service android-emulator uikit swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation webdriver centos html5-canvas widget dialog garbage-collection snowflake-cloud-data-platform numbers concatenation sql-update qml set windows-10 mapreduce tuples smtp ionic2 java-stream rotation modal-dialog spring-data android-edittext http-headers doctrine radio-button nuget grid sonarqube lucene xmlhttprequest internationalization listbox components initialization switch-statement google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb pivot eclipse-plugin latex frameworks tags containers github-actions dataset asp-classic subquery foreign-keys label copy uinavigationcontroller c++17 delegates google-cloud-storage struts2 migration base64 protractor find sql-server-2008-r2 queue uibutton embedded arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration airflow windows-7 r-markdown ssl-certificate vb6 tailwind-css gmail hover jqgrid g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/43305050/changing-the-default-path-of-visual-studio-codes-integrated-terminal) Changing the default path of Visual Studio Code's integrated terminal (/questions/ask) Ask Question (2017-04-09 09:16:29Z) Asked 7 years, 11 months ago Modified (?lastactivity) (2024-05-19 07:52:40Z) 10 months ago (Viewed 234,010 times) Viewed 234k times This question shows research effort; it is useful and clear (70:3:31e,16:2702087c1acb348f,10:1742105533,16:66d6c3bbb76bbba7,8:43305050,e6e7b3c380004a577b5ecec3db210184fc032dc654ad8f993bcb804dacdd904e) 75 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:d6e4cc50c45096ab,10:1742105533,16:402637f4a91161ec,8:43305050,cb83ced76e64e9cfc8622453d3491ab673645222289995d329c426d417c2d180) Save this question. (/posts/43305050/timeline) Show activity on this post. I'm trying to change the default path of the integrated terminal in Visual Studio Code, but I'm not sure how to. I do know how to change it in the windows command prompt, but not in Visual Studio Code. I looked in user settings, but I can't find anything there to change. The current default path is C:\Users\User_Name . I'd like to change it to C:\Project . How do I do this in Visual Studio Code? (/questions/tagged/terminal) (show questions tagged 'terminal') terminal (/questions/tagged/visual-studio-code) (show questions tagged 'visual-studio-code') visual-studio-code (/q/43305050) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/43305050/edit) () Improve this question Follow (70:3:31e,16:4bc2f1604ebc77cf,10:1742105533,16:053099f4da3b739c,8:43305050,01358725fcc6661abc7f9c9242e4bc39b2c37759d9a3a70c9a20198e7f739234) Follow this question to receive notifications (/posts/43305050/revisions) (show all edits to this post) edited (2019-12-16 19:01:50Z) Dec 16, 2019 at 19:01 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,616) 31.6k (22 gold badges) 22 22 gold badges (110 silver badges) 110 110 silver badges (133 bronze badges) 133 133 bronze badges asked (2017-04-09 09:16:29Z) Apr 9, 2017 at 9:16 (/users/7839895/nerdboy) (nerdboy's user avatar) (/users/7839895/nerdboy) nerdboy nerdboy (reputation score) 761 (2 gold badges) 2 2 gold badges (6 silver badges) 6 6 silver badges (7 bronze badges) 7 7 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 12 Answers 12 Sorted by: (/questions/43305050/changing-the-default-path-of-visual-studio-codes-integrated-terminal?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:1502631175f15214,10:1742105533,16:b8e81f5162886522,8:46781657,6eada78fd70ad653ea3f50b7288fadfc3cf8d83913b438af9275c33454384e42) 90 (This answer is not useful) (70:3:31e,16:df199a081396f6b0,10:1742105533,16:c475bdce4686cb73,8:46781657,e70ca7e0892b787ce9b178eadef8f1aaff23ef8aeb1e9bdf5fde7a7c22996e50) Save this answer. (Loading when this answer was accepted…) (/posts/46781657/timeline) Show activity on this post. Short answer Edit the user preference "terminal.integrated.cwd": "" to the path that you want the integrated terminal to open to. Long answer The same answer, but the long step-by-step version, In Visual Studio Code go to: Menu File → Preferences → Settings Now that you are in the "User Settings ", using the "Search Settings " bar across the top of the window paste or type this: terminal.integrated.cwd It will list the following as a result: // An explicit start path where the terminal will be launched, this is used as the current working directory (cwd) for the shell process. This may be particularly useful in workspace settings if the root directory is not a convenient cwd. "terminal.integrated.cwd": "", You will notice that it will not let you type here to change this setting. That is because you can't change the default setting. You instead need to change your personal settings. Here's how... Click the pencil icon to the left of the this option and then the "Copy to Settings" option that pops-up. You should have a split screen in which the right side of the screen has the heading Place your settings here to overwrite the Default Settings. This is the correct place for you to make changes. You might already have a few personalized settings listed here. When you clicked "Copy to Settings" it automatically added this line for you: "terminal.integrated.cwd": "" Notice that whichever item is last in this list will not have a trailing comma but any items before it in the list will require one. FYI: you could have simply typed or copy/pasted this into the personalized settings yourself, but following these steps is the process to learn for changing other preferences as needed. Now you are able to type to set the path you want to use. Make sure to use \\ in place of \ and you do not need the trailing \ . For example including this line would always start your terminal in the baz directory: { "terminal.integrated.cwd": "C:\\Users\\foo\\bar\\baz" } To apply the change, simply Save and restart Visual Studio Code . (/a/46781657) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/46781657/edit) () Improve this answer Follow (70:3:31e,16:b42dc83348ee2bf3,10:1742105533,16:88ea1df0c520dc99,8:46781657,01432de81be20c976b6b0d673b8493331961425edc667e525baef741e2904831) Follow this answer to receive notifications (/posts/46781657/revisions) (show all edits to this post) edited (2019-12-16 18:56:43Z) Dec 16, 2019 at 18:56 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,616) 31.6k (22 gold badges) 22 22 gold badges (110 silver badges) 110 110 silver badges (133 bronze badges) 133 133 bronze badges answered (2017-10-17 02:34:23Z) Oct 17, 2017 at 2:34 (/users/8204914/ninj4-n00b) (ninj4 n00b's user avatar) (/users/8204914/ninj4-n00b) ninj4 n00b ninj4 n00b (reputation score) 1,243 (9 silver badges) 9 9 silver badges (14 bronze badges) 14 14 bronze badges 3 (number of 'useful comment' votes received) 1 FYI this answer uses Visual Studio Code version 1.17.1 – (/users/8204914/ninj4-n00b) (1,243 reputation) ninj4 n00b Commented (2017-10-17 02:37:14Z, License: CC BY-SA 3.0) Oct 17, 2017 at 2:37 (number of 'useful comment' votes received) 2 On a mac I didn't need the extra slash characters. The following worked: "terminal.integrated.cwd": "/Users/MyUserName/dev/ProjectName/WebUI". Replace MyUserName of course with your own. Quick way to get the path on mac is to make sure "Show Path Bar" is selected in finder view menu, and then right click on the last folder at the bottom of finder, and "Copy FolderName as Path Name" . Then you can use that path in the json settings of vscode. Hope this helps someone. – (/users/2349252/firecape) (726 reputation) firecape Commented (2018-11-27 05:57:57Z, License: CC BY-SA 4.0) Nov 27, 2018 at 5:57 I just found terminal.integrated.cwd and it contained the offending location that I had set previously. I just hit delete and pressed enter and default behaviour was restored. The long answer didn't need completing. – (/users/866333/john) (6,708 reputation) John Commented (2023-01-05 12:32:14Z, License: CC BY-SA 4.0) Jan 5, 2023 at 12:32 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:5939034e8af18fa8,10:1742105533,16:22933671ac39a139,8:57868831,47025de14f9ac55bb5f7c52ecdba8dfe5721814b7e392eef62a99115bc26abe1) 34 (This answer is not useful) (70:3:31e,16:4c097c4b2bca1893,10:1742105533,16:24e229c1b8878daa,8:57868831,80f136e5de9f0e40d866d37b18167df20f51f741e6a85679d94832d9dc744499) Save this answer. (Loading when this answer was accepted…) (/posts/57868831/timeline) Show activity on this post. As others have already explained, you can add a setting to change the default folder for your integrated terminal to start in. This setting also accepts Visual Studio Code variables, so to make a relative path from the root folder of your workspace you can use ${workspaceFolder} . For example, for your terminal to always start in the subfolder mystart , your setting would be: "terminal.integrated.cwd": "${workspaceFolder}/mystart" (/a/57868831) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/57868831/edit) () Improve this answer Follow (70:3:31e,16:af173d42941e7197,10:1742105533,16:756e00ab5ece49cc,8:57868831,854f64746e6409998f0d7e5312c09e6fc8c14fd1b02bfc2e74d70cefff047009) Follow this answer to receive notifications (/posts/57868831/revisions) (show all edits to this post) edited (2019-12-16 19:01:30Z) Dec 16, 2019 at 19:01 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,616) 31.6k (22 gold badges) 22 22 gold badges (110 silver badges) 110 110 silver badges (133 bronze badges) 133 133 bronze badges answered (2019-09-10 10:27:01Z) Sep 10, 2019 at 10:27 (/users/4379151/erik-kalkoken) (Erik Kalkoken's user avatar) (/users/4379151/erik-kalkoken) Erik Kalkoken Erik Kalkoken (reputation score 32,884) 32.9k (8 gold badges) 8 8 gold badges (95 silver badges) 95 95 silver badges (127 bronze badges) 127 127 bronze badges 3 (number of 'useful comment' votes received) 2 Definitely the best answer. Useful information: besides restarting VS Code, always make sure you start a new terminal session because VS Code might restore your previous session and the working directory you had back then. – (/users/12015105/gyohza) (836 reputation) gyohza Commented (2022-06-09 13:07:28Z, License: CC BY-SA 4.0) Jun 9, 2022 at 13:07 (number of 'useful comment' votes received) 1 Great answer. FYI on a windows machine I had to use double backslash instead of forwardslash. – (/users/7827240/richardprocter) (215 reputation) richardprocter Commented (2022-09-07 12:14:18Z, License: CC BY-SA 4.0) Sep 7, 2022 at 12:14 I put ${workspaceFolder} there and it works on local projects. It does not work on remote ssh projects. It used to work. I just noticed this change yesterday (12/10/2024). Anyone else experienced this? – (/users/1272421/mark-hahn) (495 reputation) mark-hahn Commented (2024-12-12 00:53:36Z, License: CC BY-SA 4.0) Dec 12, 2024 at 0:53 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:671ba7c9520b67f1,10:1742105533,16:15a4247b6933c57f,8:61694300,3c20e1579b96f2a6dfdc73492b34ee19593ed7fe175225f6654837edcf8a4a77) 22 (This answer is not useful) (70:3:31e,16:86ccf257d7672fb7,10:1742105533,16:556cce69a49e1188,8:61694300,e8a19a46fa4e2551c220c3286905b0171072bb3369561d1911947eec1d50b47a) Save this answer. (Loading when this answer was accepted…) (/posts/61694300/timeline) Show activity on this post. Thanks for the original answer from Peter. Definitely helped ! It has now slightly changed in more recent versions of VS Code. Navigate to File -> Preferences -> Settings Type cwd in search Choose Terminal > Integrated: Cwd settings Type the default path you want to set in the text block below (simply, no need for double hashes to escape) No need for saving, It's automatic Restart VS Code (https://i.sstatic.net/Qrn9S.jpg) terminal cwd screen (/a/61694300) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/61694300/edit) () Improve this answer Follow (70:3:31e,16:422c8ceb2d3d2faa,10:1742105533,16:c76cf3df8f0f50e3,8:61694300,c3c46600888474c42ff0080ba77b55afaff30e7e4b5eb29c0c3ceb35aaabf57c) Follow this answer to receive notifications answered (2020-05-09 09:09:44Z) May 9, 2020 at 9:09 (/users/13408296/marc) (marc's user avatar) (/users/13408296/marc) marc marc (reputation score) 291 (2 silver badges) 2 2 silver badges (4 bronze badges) 4 4 bronze badges 1 this is the one that is working at 23/03/21 look at the picture, if not in the box just type your path. example: C:\Users\rober\onedrive nothing more – (/users/11318571/rob) (131 reputation) ROB Commented (2021-03-23 15:43:59Z, License: CC BY-SA 4.0) Mar 23, 2021 at 15:43 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:e6f60d070505601b,10:1742105533,16:ae4bf6c2a2101f65,8:43409548,20bc078a8d0d7943c7db264facc6fd3cbfb941b30ae2e3ddde42a7132d3e84a3) 13 (This answer is not useful) (70:3:31e,16:a67e56ff085092d9,10:1742105533,16:74bd7051d9b9a1e5,8:43409548,0b7d1970c0a571793fd98f9e33d3d9e8a9b4224f2d83a60d7ee4f2b34c3d4012) Save this answer. (Loading when this answer was accepted…) (/posts/43409548/timeline) Show activity on this post. Try this option in the "Intergrated Terminal" section of Settings. "terminal.integrated.cwd": "", (/a/43409548) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/43409548/edit) () Improve this answer Follow (70:3:31e,16:11baa38d3dce00f8,10:1742105533,16:3af63b6ca7188454,8:43409548,44cc1a731f53fb263b58090191c4d393f8ff0163b25ec3b47bd3b435c5a571c4) Follow this answer to receive notifications answered (2017-04-14 10:14:54Z) Apr 14, 2017 at 10:14 (/users/7866809/hlp) (HLP's user avatar) (/users/7866809/hlp) HLP HLP (reputation score) 131 (3 bronze badges) 3 3 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:d34f9e5a15813ea4,10:1742105533,16:9542ce7bbf2c00e4,8:56944499,73045a1c91da0a98faae0acc311da0797aaf19173dc5d854ff55141c135c7509) 6 (This answer is not useful) (70:3:31e,16:0a50d2681e15ffeb,10:1742105533,16:f61ce570601a2e8e,8:56944499,13bb62cfeceec424d18dcaa1645899d61478f1790206716aca5fc7407538a6f2) Save this answer. (Loading when this answer was accepted…) (/posts/56944499/timeline) Show activity on this post. You can also set it to a relative path to the open folder with "terminal.integrated.cwd": "./example" So if you do menu File → Open Folder... → project, and open the terminal with your keyboard shortcut, it will open to ~/project/example automatically. It can be a general folder like src you would always use, or a specific one (but then it would be best to save it in file .vscode/settings.json ). (/a/56944499) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/56944499/edit) () Improve this answer Follow (70:3:31e,16:4817b792f9b340d6,10:1742105533,16:64863932822dead4,8:56944499,b57552f72b940a825f6b85bab6b2386a1243fd21ea15978e7164ffecdde37116) Follow this answer to receive notifications (/posts/56944499/revisions) (show all edits to this post) edited (2019-12-16 18:59:48Z) Dec 16, 2019 at 18:59 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,616) 31.6k (22 gold badges) 22 22 gold badges (110 silver badges) 110 110 silver badges (133 bronze badges) 133 133 bronze badges answered (2019-07-09 02:12:47Z) Jul 9, 2019 at 2:12 (/users/11295891/n-smits) (n-smits's user avatar) (/users/11295891/n-smits) n-smits n-smits (reputation score) 713 (8 silver badges) 8 8 silver badges (22 bronze badges) 22 22 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:bad8fd579d20cb88,10:1742105533,16:ee035e94351d146b,8:77814341,8fa80410df778faa825b513d95625481f6c68c7ba8ed2049e5d32da89cb77f9c) 1 (This answer is not useful) (70:3:31e,16:511280b9dc8e3421,10:1742105533,16:89854addf68da1ac,8:77814341,d4be6c2f8b4bca7ced4fa30ecba8e585bc52fc23ea29fff622eaff4ba3edcb23) Save this answer. (Loading when this answer was accepted…) (/posts/77814341/timeline) Show activity on this post. in code to pasd in project "terminal.integrated.cwd": "./example" best to save it in file .vscode/settings.json). thanks read me. (/a/77814341) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/77814341/edit) () Improve this answer Follow (70:3:31e,16:19b8d9f612cd4359,10:1742105533,16:0bc94ef25fd40132,8:77814341,616c107fb68ca2f214e3b4ac2e4899a3a1c1da1d1f03825abe060f02791db9a7) Follow this answer to receive notifications answered (2024-01-14 08:23:57Z) Jan 14, 2024 at 8:23 (/users/18453816/ehsan-kazemi) (Ehsan Kazemi's user avatar) (/users/18453816/ehsan-kazemi) Ehsan Kazemi Ehsan Kazemi (reputation score) 11 (2 bronze badges) 2 2 bronze badges 1 (number of 'useful comment' votes received) 2 Your answer could be improved with additional supporting information. Please (https://stackoverflow.com/posts/77814341/edit) edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers (/help/how-to-answer) in the help center . – (/users/-1/community) (1 reputation) Community (Community Bot — not a real person. Replies to this bot are not monitored.) Bot Commented (2024-01-18 13:12:59Z, License: CC BY-SA 4.0) Jan 18, 2024 at 13:12 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:2e044f2a86858e2a,10:1742105533,16:c06ac51dde5f467a,8:78348121,43f63acbe25d42bf84d0ad4497505e2bb3fd61637fbd7a6155b232ce9073cb30) 1 (This answer is not useful) (70:3:31e,16:0ecf310cba016418,10:1742105533,16:5bbef0a0d25f3c60,8:78348121,54398e38746e306e4af75179dca742a15b6b7c07536f21273176bb0453dab86a) Save this answer. (Loading when this answer was accepted…) (/posts/78348121/timeline) Show activity on this post. Msys2 On windows, when using Msys2 you may want to start the shell bash as me. Symptom I encountered the same effect after setting up Msys2. First it worked, but after some time (may be just after restart of vscode) it didn't work anymore. The initial directory was always ~ . Bash prompt: @ MSYS ~ Cause I had an incomplete setup in file C:\Users\...\AppData\Roaming\Code\User\settings.json : { ... "terminal.integrated.defaultProfile.windows": "bash (MSYS2)", "terminal.integrated.profiles.windows": { "PowerShell": { ... }, "Command Prompt": { "path": [ "${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe" ], "args": [], "icon": "terminal-cmd" }, "Git Bash": { "source": "Git Bash" }, "bash (MSYS2)": { "path": "C:\\msys...\\usr\\bin\\bash.exe", "args": [ "--login", "-i" ] } }, ... Cure I found this documentation (https://code.visualstudio.com/docs/terminal/profiles#_msys2) here . Hence, I just added "env": { "CHERE_INVOKING": "1" } entry to entry "bash (MSYS2)" as shown below: "bash (MSYS2)": { "path": "C:\\msys64\\usr\\bin\\bash.exe", "args": [ "--login", "-i" ], "env": { "CHERE_INVOKING": "1" } } Why this? Explanation (https://www.msys2.org/wiki/Launchers/) here . Other terminals For a lot of terminals it is documented (https://code.visualstudio.com/docs/terminal/profiles) here , as well. Today the following are documented: PowerShell zsh Cmder Cygwin Git Bash WSL (/a/78348121) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/78348121/edit) () Improve this answer Follow (70:3:31e,16:2c4422210330d8f8,10:1742105533,16:ff3d72d82f243eb4,8:78348121,fd7cc95452c80172c4f437839471a9470d7acc24486514a7287e26815491dd58) Follow this answer to receive notifications answered (2024-04-18 14:09:46Z) Apr 18, 2024 at 14:09 (/users/10758252/j%c3%b6rg-br%c3%bcggmann) (Jörg Brüggmann's user avatar) (/users/10758252/j%c3%b6rg-br%c3%bcggmann) Jörg Brüggmann Jörg Brüggmann (reputation score) 706 (7 silver badges) 7 7 silver badges (19 bronze badges) 19 19 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:883775fc812e80dc,10:1742105533,16:4026d736db94bcb8,8:78429924,5a8e36c7a9df46556e1ce83534ce142691abf76ee5c1feee8a54a63191357006) 1 (This answer is not useful) (70:3:31e,16:d0b40f47a20c2ed9,10:1742105533,16:583f765e893b263c,8:78429924,f0803335333acae15fb0c761c3d51fe1a6313c093d822669b725b168534cd5f7) Save this answer. (Loading when this answer was accepted…) (/posts/78429924/timeline) Show activity on this post. Go your VsCode: in with Ctrol + , keybinding go to Settings copypaste this on the search bar: @feature:terminal cwd In Terminal > Integrated: Cwd , put this: ${fileDirname} source: (https://code.visualstudio.com/docs/editor/variables-reference) https://code.visualstudio.com/docs/editor/variables-reference (/a/78429924) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/78429924/edit) () Improve this answer Follow (70:3:31e,16:ad21470e340b955a,10:1742105533,16:9be4daa588bc31c9,8:78429924,bf5c0bb3340bda103e3c6f6ef99719487c519231e90b4d6cd248c3fa118b70cb) Follow this answer to receive notifications answered (2024-05-04 17:55:20Z) May 4, 2024 at 17:55 (/users/19402699/hiyorijl) (hiyorijl's user avatar) (/users/19402699/hiyorijl) hiyorijl hiyorijl (reputation score) 76 (5 bronze badges) 5 5 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:8454f07584fab9a2,10:1742105533,16:5dd8d6d7ae70d9f6,8:45330147,0f2e9aa379cee0f260d13fae39ff8b965407ab537273b73dfe7836a4b3e67f50) 0 (This answer is not useful) (70:3:31e,16:b07ba70fb1e07ac4,10:1742105533,16:209d2aa128564f0b,8:45330147,665f23463dc3b319ec55858020dd58910418c1f163ca4dabbe6d7c3a244a8330) Save this answer. (Loading when this answer was accepted…) (/posts/45330147/timeline) Show activity on this post. The below option will help you do this. Menu File → Preferences → Settings . Add or edit the below setting. terminal.integrated.shell.windows": "" From the next terminal it will be reflected. And add file (https://en.wikipedia.org/wiki/Bash_(Unix_shell)#Setting_inheritable_environment_variables) .profile to your default shell, and add the default path to it. More information can be found at (https://code.visualstudio.com/docs/editor/integrated-terminal) Integrated Terminal . (/a/45330147) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/45330147/edit) () Improve this answer Follow (70:3:31e,16:37056b62fcf72872,10:1742105533,16:713658a7f591e52a,8:45330147,49ee3c472e45d027def63f0009b7545ecfe6f0adc58baf964bb63a4f70bb0be1) Follow this answer to receive notifications (/posts/45330147/revisions) (show all edits to this post) edited (2019-12-16 18:50:35Z) Dec 16, 2019 at 18:50 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,616) 31.6k (22 gold badges) 22 22 gold badges (110 silver badges) 110 110 silver badges (133 bronze badges) 133 133 bronze badges answered (2017-07-26 14:38:09Z) Jul 26, 2017 at 14:38 (/users/1779562/sai-prasanth) (Sai Prasanth's user avatar) (/users/1779562/sai-prasanth) Sai Prasanth Sai Prasanth (reputation score) 15 (3 bronze badges) 3 3 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:876498c140444957,10:1742105533,16:473192aecb0d03c2,8:75696916,0fc39510923efef34fbb087da192838d687913786d5b4ce3d0319fc0e26f6a74) 0 (This answer is not useful) (70:3:31e,16:49be33880fb3167b,10:1742105533,16:bbf5459363e7b643,8:75696916,b66f7f2bcd2deef48e7a12dcf34c32b863858f1e0294faee2c7f6bef1e053734) Save this answer. (Loading when this answer was accepted…) (/posts/75696916/timeline) Show activity on this post. If anyone else had trouble getting this to work with ${workspaceFolder} in Windows like I did, keep in mind that the starting directory you set in Visual Studio Code will be overridden by anything in your PowerShell profile. You can edit your PowerShell profile by typing code $PROFILE in your terminal. I got tripped up even more because I had two profiles. To list all of your PowerShell profiles, try the command Get-ChildItem -Path $PROFILE.AllUsersAllHosts,$PROFILE.AllUsersCurrentHost,$PROFILE.CurrentUserAllHosts,$PROFILE.CurrentUserCurrentHost -Filter *.ps1 and look through any items that come up to see if any of them are changing your default path. Also, having two PowerShell profiles is not a good idea, so combined them into the one pointed to by $PROFILE (the other was in the same directory named profile.ps1 . Once this is ironed out, setting something like "terminal.integrated.cwd": "${workspaceFolder}" should work. (/a/75696916) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/75696916/edit) () Improve this answer Follow (70:3:31e,16:07e65fc228958610,10:1742105533,16:d0be89c955ebab93,8:75696916,ddf1f9a85196284890d165769f697c715060a2488c1596d017a450c41d9167f5) Follow this answer to receive notifications answered (2023-03-10 13:44:54Z) Mar 10, 2023 at 13:44 (/users/1949542/mountaindrew) (MountainDrew's user avatar) (/users/1949542/mountaindrew) MountainDrew MountainDrew (reputation score) 483 (5 silver badges) 5 5 silver badges (21 bronze badges) 21 21 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:b0cefe5824f7db52,10:1742105533,16:ed74c2674743b122,8:78151317,709c866004f1e04b56f2f84dc8e4672da7e20f2e7b48cb584edc4bf59c8698ed) 0 (This answer is not useful) (70:3:31e,16:5570467b45ed3c47,10:1742105533,16:8aa52c9fd3bf7ee0,8:78151317,5469ff29e140a9f1207360b4ef7c62d4aa3ff4ab89e03c0a0ab74577f35659f6) Save this answer. (Loading when this answer was accepted…) (/posts/78151317/timeline) Show activity on this post. Go to File > Preferences > Settings Type cwd in search bar Then choose Integrated: cwd and type the address (/a/78151317) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/78151317/edit) () Improve this answer Follow (70:3:31e,16:16b3a24a85eecfb7,10:1742105533,16:5c115734c00f5c87,8:78151317,6ea72d1a4072f68ac5b990066fdce213724c67bf130f9f01a1a51e1b698d8fa7) Follow this answer to receive notifications (/posts/78151317/revisions) (show all edits to this post) edited (2024-03-14 11:02:48Z) Mar 14, 2024 at 11:02 (/users/7351272/emma) (Emma's user avatar) (/users/7351272/emma) Emma (reputation score) 834 (14 silver badges) 14 14 silver badges (21 bronze badges) 21 21 bronze badges answered (2024-03-13 04:56:44Z) Mar 13, 2024 at 4:56 (/users/23596992/abhiram-gobburi) (Abhiram Gobburi's user avatar) (/users/23596992/abhiram-gobburi) Abhiram Gobburi Abhiram Gobburi (reputation score) 1 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:5c1c9ffe82f6d20a,10:1742105533,16:3434787e66cdac33,8:78476768,19e67b008c7f0a7add6ad468a07d8de06d33138ae767caec61395d2c884ffe79) 0 (This answer is not useful) (70:3:31e,16:399077299eb9a131,10:1742105533,16:209f4887fac059fe,8:78476768,5ef99fdfb997613d5fa8156c5fff01136a6dd520f780b5a38486eeb64f1faa32) Save this answer. (Loading when this answer was accepted…) (/posts/78476768/timeline) Show activity on this post. Add this snippet to your Settings.json in Visual Studio Code: "terminal.integrated.defaultProfile.windows" : "PowerShell (Anaconda)" , "terminal.integrated.profiles.windows" : { "PowerShell (Anaconda)" : { "source" : "PowerShell" , "args" : [ "-ExecutionPolicy" , "ByPass" , "-NoExit" , "-Command" , ";& 'C:\\Users\\User_name\\anaconda3\\shell\\condabin\\conda-hook.ps1' ${env:CONDA_ENV}" ] , "color" : "terminal.ansiGreen" } (/a/78476768) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/78476768/edit) () Improve this answer Follow (70:3:31e,16:1d8b8689cb2f0fc9,10:1742105533,16:4a859941d1f4120e,8:78476768,697d1028baa82506e73b3f1e9593298cad1d5b28e0ef50df69cf7c5e7ec4727d) Follow this answer to receive notifications (/posts/78476768/revisions) (show all edits to this post) edited (2024-05-19 07:52:40Z) May 19, 2024 at 7:52 (/users/3025856/jeremy-caney) (Jeremy Caney's user avatar) (/users/3025856/jeremy-caney) Jeremy Caney (reputation score) 7,642 (104 gold badges) 104 104 gold badges (55 silver badges) 55 55 silver badges (83 bronze badges) 83 83 bronze badges answered (2024-05-14 08:31:14Z) May 14, 2024 at 8:31 (/users/21822185/luuducthang) (LuuDucThang's user avatar) (/users/21822185/luuducthang) LuuDucThang LuuDucThang (reputation score) 1 (1 bronze badge) 1 1 bronze badge 1 Thank you for your interest in contributing to the Stack Overflow community. This question already has quite a few answers—including one that has been extensively validated by the community. Are you certain your approach hasn’t been given previously? If so, it would be useful to explain how your approach is different, under what circumstances your approach might be preferred, and/or why you think the previous answers aren’t sufficient. Can you kindly (https://stackoverflow.com/posts/78476768/edit) edit your answer to offer an explanation? – (/users/3025856/jeremy-caney) (7,642 reputation) Jeremy Caney Commented (2024-05-19 07:52:57Z, License: CC BY-SA 4.0) May 19, 2024 at 7:52 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (43305050) (false) () Your Answer (True) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (9b9d1ff1208457cf29de4d03e17fc06b55f301e0c5c48e7398c73e63b318268a) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f43305050%2fchanging-the-default-path-of-visual-studio-codes-integrated-terminal%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/terminal) (show questions tagged 'terminal') terminal (/questions/tagged/visual-studio-code) (show questions tagged 'visual-studio-code') visual-studio-code See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/03/14/can-climate-tech-startups-address-the-current-crisis/?cb=1) Can climate tech startups address the current crisis? (https://stackoverflow.blog/2025/03/14/what-we-learned-at-tdx-2025/?cb=1) What we learned at TDX 2025 Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407321/community-asks-sprint-announcement-march-2025?cb=1) Community Asks Sprint Announcement - March 2025 (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407425/meta-stack-exchange-site-maintenance-scheduled-starting-monday-march-17-2025-f?cb=1) (Meta Stack Exchange site maintenance scheduled starting Monday, March 17, 2025 from 13:30 UTC to 14:30 UTC (9:30am to 10:30am ET)) Meta Stack Exchange site maintenance scheduled starting Monday, March 17,... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/432989/is-it-better-to-redirect-users-who-attempt-to-perform-actions-they-cant-yet-tak?cb=1) (Is it better to redirect users who attempt to perform actions they can't yet take?) Is it better to redirect users who attempt to perform actions they can't yet... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433034/stacks-editor-development-and-testing?cb=1) Stacks Editor development and testing Linked (https://stackoverflow.com/q/74926617?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74926617/setting-up-a-terminal-in-vs-code?noredirect=1&lq=1) Setting up a terminal in VS code (https://stackoverflow.com/q/52397075?lq=1) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/52397075/setting-wsl-to-cwd-in-vscode-terminal?noredirect=1&lq=1) Setting WSL to CWD in VSCode Terminal (https://stackoverflow.com/q/46419613?lq=1) (Question score (upvotes - downvotes)) 25 (https://stackoverflow.com/questions/46419613/visual-studio-code-default-folder?noredirect=1&lq=1) Visual Studio Code Default Folder (https://stackoverflow.com/q/62850967?lq=1) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/62850967/change-default-working-directory-for-vs-code-terminal?noredirect=1&lq=1) Change default working directory for VS Code terminal (https://stackoverflow.com/q/61515943?lq=1) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/61515943/how-to-get-terminal-to-default-open-into-my-virtual-environment?noredirect=1&lq=1) How to get terminal to default open into my virtual environment? (https://stackoverflow.com/q/78756349?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/78756349/vs-powershell-wont-let-me-compile-but-using-it-externally-will?noredirect=1&lq=1) VS Powershell wont let me compile, but using it externally will (https://stackoverflow.com/q/77767545?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/77767545/advice-for-vs-code-cwd-settings-on-windows-11?noredirect=1&lq=1) Advice for VS Code CWD settings on Windows 11 Related (https://stackoverflow.com/q/40487445?rq=3) (Question score (upvotes - downvotes)) 77 (https://stackoverflow.com/questions/40487445/how-to-change-the-integrated-terminal-in-visual-studio-code?rq=3) How to change the integrated terminal in Visual Studio Code (https://stackoverflow.com/q/44703754?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/44703754/change-the-default-terminal-used-by-visual-studio-mac?rq=3) Change the default terminal used by Visual Studio (Mac) (https://stackoverflow.com/q/45340138?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/45340138/changing-the-initial-path-of-the-developer-command-prompt-for-vs-2017?rq=3) Changing the initial path of the Developer Command Prompt for VS 2017 (https://stackoverflow.com/q/46810511?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/46810511/is-there-a-way-to-change-the-default-paths-for-visualstudiocode?rq=3) Is there a way to change the default paths for visualstudiocode? (https://stackoverflow.com/q/46988152?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/46988152/visual-studio-code-integrated-terminal-open-at-the-current-project-directory-ma?rq=3) Visual Studio Code Integrated Terminal open at the current project directory (mac)? (https://stackoverflow.com/q/50289480?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/50289480/git-bash-wit-visual-studio-code-how-to-set-permanent-path?rq=3) Git Bash wit Visual Studio Code: how to set permanent PATH (https://stackoverflow.com/q/62850967?rq=3) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/62850967/change-default-working-directory-for-vs-code-terminal?rq=3) Change default working directory for VS Code terminal (https://stackoverflow.com/q/66844098?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/66844098/how-to-change-default-installation-path-for-vs-code?rq=3) How to change default installation path for vs code? (https://stackoverflow.com/q/69040449?rq=3) (Question score (upvotes - downvotes)) 30 (https://stackoverflow.com/questions/69040449/how-to-change-default-terminal-in-vs-code?rq=3) How to change default terminal in VS Code (https://stackoverflow.com/q/72237050?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/72237050/change-default-terminal-in-vs-code-to-cmd?rq=3) Change default terminal in VS Code to cmd (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130950/a-box-inside-a-box-puzzle) A box inside a box puzzle (German Language Stack Exchange) (https://german.stackexchange.com/questions/78914/grammatically-speaking-what-is-kann-ermittelt-werden) Grammatically speaking, what is "Kann ... ermittelt werden"? (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/315818/can-i-use-tandem-breakers-to-make-room-in-a-full-panel-with-full-neutral-bus-bar) Can I use tandem breakers to make room in a full panel with full neutral bus bars? (English Language Learners Stack Exchange) (https://ell.stackexchange.com/questions/363158/tipped-for-promotion) "Tipped for promotion" (Seasoned Advice) (https://cooking.stackexchange.com/questions/130343/what-is-the-highest-temperature-the-butter-can-be-used-for-baking-at) What is the highest temperature the butter can be used for baking at? (Cross Validated) (https://stats.stackexchange.com/questions/662601/why-are-some-independent-variables-having-huge-std-errors) Why are some independent variables having huge std errors? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5045996/sequence-of-functions-with-iterative-derivation-prove-existence-of-limit) Sequence of functions with iterative derivation, prove existence of limit (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/123464/is-it-ethical-to-try-our-best-in-taking-the-perspective-of-the-individual-before) Is it ethical to try our best in taking the perspective of the individual before proceeding moral reasoning on them? (Law Stack Exchange) (https://law.stackexchange.com/questions/107808/can-a-fulfilled-justified-anticipated-approval-of-a-crime-make-one-an-accomplice) Can a fulfilled justified anticipated approval of a crime make one an accomplice? (Super User) (https://superuser.com/questions/1886312/what-is-the-virtual-documents-directory-on-linux) What is the ".virtual_documents" directory on Linux? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/217379/how-does-a-professor-plan-to-teach-cover-a-syllabus-for-the-first-time) How does a professor plan to teach/cover a syllabus for the first time? (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/311566/calculating-condition-of-zeros-of-trigonometric-quantity) Calculating Condition of Zeros of Trigonometric Quantity (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/295469/movie-with-a-girl-going-to-a-magic-school-and-getting-a-non-black-cat) Movie with a girl going to a magic school and getting a non-black cat (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739023/expansion-of-pgfplotsretval-in-node-contents-inside-foreach-loop) Expansion of \pgfplotsretval in node contents inside foreach loop (Travel Stack Exchange) (https://travel.stackexchange.com/questions/193732/1-hour-20-minutes-enough-transfer-time-through-budapest-airport) 1 hour 20 minutes enough transfer time through Budapest Airport? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/265329/ancient-artificial-wombs) Ancient Artificial Wombs (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/315865/how-to-repair-stone-walkaway) How to repair stone walkaway (Motor Vehicle Maintenance & Repair Stack Exchange) (https://mechanics.stackexchange.com/questions/98741/car-left-idling-for-extended-period) Car left idling for extended period (English Language & Usage Stack Exchange) (https://english.stackexchange.com/questions/629876/is-raid-kills-bugs-dead-grammatical) Is ‘Raid Kills Bugs Dead’ grammatical? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/739015/mathbb-not-working-when-using-pdflatex-acmart-declaresymbolfont-stmaryrd-an) \mathbb not working when using pdfLaTeX, acmart, DeclareSymbolFont, stmaryrd, and bbold in a specific order (Latin Language Stack Exchange) (https://latin.stackexchange.com/questions/24522/how-do-you-say-take-your-medicine-in-latin-do-you-use-the-verb-capio-as-in) How do you say "take your medicine" in Latin? Do you use the verb "capio" (as in English)? Or do you use "bibo" (as in Croatian)? Or something else? (Law Stack Exchange) (https://law.stackexchange.com/questions/107792/what-are-the-legal-consequences-of-tesla-germany-holding-back-sick-employees-pa) What are the legal consequences of Tesla Germany holding back sick employees' pay? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/741495/a-problem-with-the-basics-of-opamps) A Problem with the Basics of OpAmps (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/130962/impossible-but-light-maths-puzzle) Impossible but light maths puzzle (/feeds/question/43305050) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/43305050) () (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Your Privacy Choices (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.3.14.23880 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings