Profile settings - VS Code

Matt Pollock 246 Reputation points
2023-04-28T15:11:01.28+00:00

Hello,

I am very new to VS Code, I'm hoping this will be a simple quick fix!

I have set up two profiles in VS Code, one for Production use - mainly to use Powershell as an intended replacement for ISE

I have a second profile, for Dev and testing, mainly for learning

Each profile uses a separate MS account, linked to different Azure tenants.

When I switch between profiles, the project/workspace/folder from the previous profile is loaded.

For example:

Profile 1 - working directory is D:\ , working on a PS script saved in D:\
Switch to Profile 2 - still working in D:\ with same script open

Manually open the correct folder whilst logged into Profile 2 - say E:\

Switch back to Profile 1 - I'm still in E:\

Is this expected behaviour when switching between profiles, and can it be changed?

Thanks in advance

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
189 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,000 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,641 Reputation points Microsoft Vendor
    2023-05-01T03:38:09.5033333+00:00

    Hi @Matt Pollock, 

    Welcome to Microsoft Q&A! 

    You are using Visual Studio Code, which is different from Visual Studio. The tag “Visual Studio Extensions” and “Visual Studio Setup” are related to Visual Studio, for more questions about Visual Studio Code, you can post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product. 

    Thanks for your understanding. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments