locked
VS starts up in the wrong folder RRS feed

  • Question

  • I have been using VSC for some time but lately something strange is going on. When I start it up, it says the following in the Terminal: “PS C:\Users\User\OneDrive\Desktop\flask\hello_flask>”

    1. Why does it say “PS” in the beginning?
    2. Why does it go to “Desktop\flask\hello_flask” by default?

    Then, why I try to run a simple code (by clicking the green “Run Python in file”-button on the upper right) like this:

    a = 5
    
    b = 4
    
    c = a + b
    
    print (c)
    in test.py file in a different folder, this is the message I am getting
    PS C:\Users\User\OneDrive\Desktop\flask\hello_flask> conda activate C:\Users\User\anaconda3
    conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    
    At line:1 char:1
    + conda activate C:\Users\User\anaconda3
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (conda:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    

    However, at some, it does give me the right answer: 9

    1. Why am I getting all these messages?

    When I select the five lines of code (four-line, one line is empty before the print) and select “Shift-enter”, this is what it gives me:

    >>> a = 5
    
    >>> b = 4
    
    >>> c = a + b
    
    >>> print (c)
    
    9
    
    >>>
    
    1. What do the three “>” signs mean, please?
    Sunday, September 6, 2020 9:32 PM