Share via

problem while using visual studio code

Manan Joshi 20 Reputation points
2026-06-15T18:59:19.6566667+00:00

I am trying to run a code but it is not giving output. There is nothing wrong with the code and there is no error. maybe I am doing something wrong but I have checked all the settings and permissions too. please if anyone could help me with this.

Developer technologies | Visual Studio | Setup
0 comments No comments

Answer accepted by question author

Leon Tran (WICLOUD CORPORATION) 1,990 Reputation points Microsoft External Staff Moderator
2026-06-16T01:11:35.1+00:00

Hi @Manan Joshi ,

Thank you for reaching out.

Visual Studio Code itself is just a code editor. A simple way to understand it is that it is similar to Microsoft Word, but for writing code. By default, it does not include a compiler.

Based on the information provided, one possible cause is that the required compiler or runtime has not been installed yet. Depending on the programming language you are using, you may need to install the appropriate compiler before you can build and run your code.

Below are some common setups for popular languages:

Language What to Install Purpose
C / C++ GCC / Clang / MSVC Compiler
C# .NET SDK Build + Runtime
Java JDK Compiler + Runtime
Web (HTML/CSS/JS) (Optional) Node.js Runtime

Once the required tools are installed, you can use the integrated terminal in VS Code to build and run your code. For example, in C:

gcc main.c -o main

User's image If you prefer a simpler setup with built-in build and run capabilities, you might consider using Visual Studio 2026 Community. It is a full IDE (Integrated Development Environment) that allows you to compile and run your code with minimal setup and often just a single click.

Hope this helps! If my answer was helpful, you can follow this guidance to provide some feedback. This also help another find the solution easier. 

I look forward to hearing from you soon.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marcin Policht 92,380 Reputation points MVP Volunteer Moderator
    2026-06-15T19:11:28.46+00:00

    Review the layout - more at https://code.visualstudio.com/docs/editing/userinterface

    Basic layout

    VS Code comes with a simple and intuitive layout that maximizes the space provided for the editor, while leaving ample room to browse and access the full context of your folder or project. The user interface is divided into six main areas:

    • Editor - The main area to edit your files. You can open as many editors as you like side by side vertically and horizontally.
    • Primary Side Bar - Contains different views like the Explorer to assist you while working on your project.
    • Secondary Side Bar - Opposite the Primary Side Bar. By default, contains the Chat view. Drag and drop views from the Primary Side Bar to the Secondary Side Bar to move them.
    • Status Bar - Information about the opened project and the files you edit.
    • Activity Bar - Located on the far left-hand side. Lets you switch between views and gives you additional context-specific indicators, like the number of outgoing changes when Git is enabled. You can change the position of the Activity Bar.
    • Panel - An additional space for views below the editor region. By default, it contains output, debug information, errors and warnings, and an integrated terminal. The Panel can also be moved to the left or right for more vertical space.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Bruce (SqlWork.com) 84,086 Reputation points
    2026-06-16T00:21:52.41+00:00

    It would help if you told us the language (c#, rust, etc) and type of project (web, console, mobile, etc).

    If it’s a console app, it will exit the terminal as some as it’s done. To keep the terminal open

    • You can add.console read line at program end
    • You can change the launch file to use integrated terminal
    • Manually run from the vs terminal

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.