简体   繁体   中英

How do I display clean output in Visual studio code with out path or “You may only use…” disclaimer?

I have this simple code in Visual Studio Code

class Program
{
    static void Main()
    { 
        Console.WriteLine("Hello!!!"); 
    }
}

All I want to do is get the same result as when I type DOTNET RUN which prints a simple "Hello!!!" to the terminal.

Instead, if i configure it to use the terminal, I get this PATH in blue or if I try to use the debug window, I get this "You may only use..." disclaimer.

How can I set my configuration to either use one of these windows by clicking "Start with out debugging" (not via typing dotnet run manually) to print my output with out any excess info in the red boxes as seen in the images?

If there's a way to configure "dotnet run" in my settings, i'm good with that too so long the output is just "Helloo!!!" on either the debug or terminal window.

在此处输入图片说明 在此处输入图片说明

You might be able to do this by using an extension like Code Runner which works with Visual Studio Code, it is similar to Script Runner which works with the Atom editor. These are useful for reviewing simple code changes in real-time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM