skip to Main Content

Hi i’m new into vscode and when i run a program there is some text that i want to get rid of.

enter image description here

i mainly want to remove the first two paragraphs, but also removing the path would be ideal

i tried code runner but thats not the solution i’m looking for
i also tried changing the color to black but i reckon there is a way to remove it

3

Answers


  1. Adding the "-NoLogo" start parameter will remove the paragraph of text; If you open your settings file (Ctrl+Shift+P and then type "Settings" -> User Settings JSON), you can use the following bit of configuration:

    // should go in the main JSON object with the other keys
    "terminal.integrated.profiles.windows": {
        // it might generate some more profiles automatically, but powershell is what matters
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell",
            "args": ["-NoLogo"]
        }
    }
    
    Login or Signup to reply.
  2. I believe by default those lines will always appear because those are the one that show up when you open cmd on Windows.

    Also, by default, the path open to the current project folder, that the reason why you see the path.

    You can do a cls to clear the terminal, but the path will remain unless you change the directory.

    You can read more about VS Code integrated terminal here and about terminal profiles here

    Login or Signup to reply.
  3. First go to terminal settings and then the add -nologo arg

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search