Code Monkey home page Code Monkey logo

se-assignment-5-anitahnzioki's Introduction

Review Assignment Due Date Open in Visual Studio Code

SE-Assignment-5

Installation and Navigation of Visual Studio Code (VS Code) Instructions: Answer the following questions based on your understanding of the installation and navigation of Visual Studio Code (VS Code). Provide detailed explanations and examples where appropriate.

Questions:

  1. Installation of VS Code:
    • Describe the steps to download and install Visual Studio Code on Windows 11 operating system. Include any prerequisites that might be needed.Download the Installer:

i searched for it in the browser then i followed these steps for its installation

Once the download was complete, i located the downloaded file in downloads and double-clicked on it to run the installer. Accept User Account Control (UAC) Prompts:

Click ed"Yes" to proceed. Start the Installation:

The VS Code Setup Wizard appeared. Clicked on "Next" to continue. Select Destination Location:

Choose the destination folder where you want to install VS Code or leave it as the default. Click "Next". Select Start Menu Folder:

Choose the folder where you want the VS Code shortcuts to be placed in the Start menu. Click "Next". Select Additional Tasks (optional):

You can choose whether or not to create shortcuts for VS Code on the desktop and add to the PATH. Adjust according to your preferences and click "Next". Install:

Click on "Install" to begin the installation process. The installer will extract and install VS Code on your system. Complete the Installation:

Once the installation was complete, i clicked on "Finish". VS Code was the installed on the Windows 11 PC.

  1. First-time Setup:

    • After installing VS Code, what initial configurations and settings should be adjusted for an optimal coding environment? Mention any important settings or extensions.
    1. Update VS Code Settings: Open Settings: Press Ctrl + , (or go to File > Preferences > Settings). Adjust Font Size: Search for editor.fontSize and set it to a comfortable size for readability. Tab Size and Indentation: Set editor.tabSize and editor.insertSpaces according to your coding style (e.g., editor.tabSize: 2, editor.insertSpaces: true). Line Numbers: Enable line numbers with editor.lineNumbers set to on. Word Wrap: Decide on editor.wordWrap (e.g., "wordWrap": "on" for wrapping long lines).
  2. Install Essential Extensions: Programming Language Extensions: Install extensions for the programming languages you work with (e.g., Python, JavaScript, Java). Theme: Choose a theme (Ctrl + Shift + P, type "Color Theme") that suits your preference (e.g., Dark+ or Light+). Git Integration: If you use Git, install the GitLens extension for enhanced Git functionality. Debugger: Install extensions for debugging support for your language of choice (e.g., Debugger for Chrome for JavaScript debugging).

  3. Configure Integrated Terminal: Terminal Shell: Set the default shell in VS Code's integrated terminal (terminal.integrated.shell.windows for PowerShell or Command Prompt). Customize Terminal Appearance: Adjust font, colors, and other preferences in the integrated terminal (Ctrl + , and search for terminal.integrated settings).

  4. Customize Key Bindings: Customize key bindings (Ctrl + K + Ctrl + S or File > Preferences > Keyboard Shortcuts) to match your workflow or import key bindings from other editors (File > Preferences > Keymaps > Sublime Text, Atom, etc.).

  5. User Interface Overview:

    • Explain the main components of the VS Code user interface. Identify and describe the purpose of the Activity Bar, Side Bar, Editor Group, and Status Bar.

Activity Bar:

Positioned vertically on the far left side of the window, it contains icons representing different views and functionalities: Explorer: Allows navigation through files and folders. Search: Provides search capabilities across files and folders. Source Control: Integrates with Git or other version control systems. Run and Debug: Facilitates running and debugging applications. Extensions: Manages VS Code extensions. Side Bar:

Adjacent to the activity bar, it displays additional views such as Outline, Debug Console, Problems, Output, and Terminal. Extensions can also add their own views to the side bar. Editor Group:

The central area where you edit files. It consists of one or more editor tabs, each representing a file you're currently working on. You can split this area into multiple editor groups to work on different files simultaneously. Status Bar:

Located at the bottom of the window, it provides information about the current state of the editor and the project, including the Git branch, language mode, line ending type, and indentation settings. It also includes optional buttons for changing the file encoding, indentation settings, and line ending format. 4. Command Palette:

  • What is the Command Palette in VS Code, and how can it be accessed? Provide examples of common tasks that can be performed using the Command Palette. Accessed via Ctrl + Shift + P, it provides a quick way to access all commands and settings in VS Code by typing their names.
  1. Extensions in VS Code:

    • Discuss the role of extensions in VS Code. How can users find, install, and manage extensions? Provide examples of essential extensions for web development.
  2. Integrated Terminal:

    • Describe how to open and use the integrated terminal in VS Code. What are the advantages of using the integrated terminal compared to an external terminal?

Launch Visual Studio Code on your Windows 11 machine. Access the Terminal; you can go to the menu and select View > Terminal. You can also right-click anywhere in the editor or file explorer and select Open in Terminal from the context menu. By default, the terminal will open at the bottom of the VS Code window, replacing any panel that was previously there. advantages of intergrated terminal code over the external one are; The integrated terminal is part of the VS Code window, providing a seamless experience without switching between multiple applications. The integrated terminal is aware of the current workspace and project settings within VS Code.

You can run VS Code commands directly from the integrated terminal. For instance, opening files (code .)

Tasks such as debugging, running scripts, and managing dependencies can often be performed more efficiently when the terminal is integrated within the IDE. This reduces context switching and speeds up development tasks. You can change the default shell, create multiple terminal instances, and configure terminal profiles tailored to different project requirements. It simplifies sharing configuration settings and ensures everyone has access to the same tools and workflows.

  1. File and Folder Management:
    • Explain how to create, open, and manage files and folders in VS Code. How can users navigate between different files and directories efficiently?

Creating a File: Click on the Explorer icon in the Activity Bar (usually the top icon resembling a file folder). Right-click on the folder where you want to create the file. Select New File. Enter the desired filename and press Enter. Creating a New Folder: Similarly, right-click on the folder where you want to create the new folder. Enter the desired folder name and press Enter.

  1. Settings and Preferences:

    • Where can users find and customize settings in VS Code? Provide examples of how to change the theme, font size, and keybindings. Open Settings: Select Color Theme: In the search bar at the top of the Settings view, type "Color Theme". Click on "Color Theme" under "Workbench" to see a list of available themes. Choose a Theme: Click on the theme you want to use. VS Code will apply the theme immediately. Customizing Theme: Some themes allow for customization. If the theme supports it, you can adjust specific settings related to the theme by clicking on the "Edit in settings.json" link that appears when you hover over the theme. Changing Font Size Open Settings: Search for Font Size: In the search bar, type "Font Size". Adjust Font Size: Find the setting Editor: Font Size and set it to your desired font size (e.g., 16 for 16px). Changing Key Bindings Open Keyboard Shortcuts; Search for a Keybinding: In the search bar at the top of the Keyboard Shortcuts editor, type the action or keybinding you want to modify (e.g., workbench.action.quickOpen). Modify Keybinding: Double-click on the keybinding you want to change. Enter your desired key combination. VS Code will check if the keybinding is already used and prompt you if it's conflicting with another command. Custom Keybindings: To create a custom keybinding, click on the keybindings.json link at the top right of the Keyboard Shortcuts editor. This will open the keybindings.json file where you can define custom keybindings.
  2. Debugging in VS Code:

    • Outline the steps to set up and start debugging a simple program in VS Code. What are some key debugging features available in VS Code? 1.Before you start debugging, ensure you have installed any necessary debugging extensions for the programming language or framework you are working with. For example, for Python, you might need to install the "Python" extension.
  3. Set Breakpoints Open Your Project: Open the folder or workspace containing your project in VS Code. Navigate to the File: Open the file you want to debug in the editor. Set Breakpoints: Click in the gutter (the space next to the line numbers) to set breakpoints. A red dot will appear, indicating a breakpoint is set. Breakpoints pause execution of your code at that line so you can inspect variables and step through code.

  4. Configure Launch Configuration Open Debug View: Click on the debug icon in the Activity Bar (or use Ctrl + Shift + D). Configure Launch Configuration:

If you have not configured a launch configuration before, VS Code will prompt you to create one. Click on the gear icon (⚙️) or create a launch.json file link, then select your environment (e.g., Node.js, Python, Java). Edit Launch Configuration:

VS Code will generate a launch.json file in the .vscode folder. Modify the configuration to specify how VS Code should run and debug your program. For example, set the program path, command-line arguments, environment variables, etc. 4. Start Debugging Start Debugging: After setting breakpoints and configuring launch settings, click on the green play icon (▶️) in the Debug view to start debugging. Alternatively, you can use the F5 key.

Debug Toolbar: The debug toolbar will appear at the top of the editor with controls such as play, pause, step over, step into, step out, restart, and stop.

  1. Debugging Actions Inspect Variables: While debugging, you can hover over variables to see their current values or add them to the Watch panel for continuous monitoring.

Console: Use the integrated debug console (Ctrl + \ or View > Debug Console) to execute commands and interact with your program.

Call Stack: View the call stack to see the path your program took to reach the current breakpoint.

  1. Continue Debugging Continue Execution: Click the play icon (▶️) to resume execution until the next breakpoint or the end of the program.

  2. Stop Debugging Stop Debugging: Click on the red square icon (⏹️) in the debug toolbar, or use Shift + F5, to stop debugging and return to normal editing mode.

  3. Advanced Debugging Features Conditional Breakpoints: Right-click on a breakpoint and choose "Edit Breakpoint" to set conditions that trigger the breakpoints.Some configurations allow you to define pre-launch and post-mortem tasks (like compiling TypeScript or running unit tests) to automate parts of your debugging workflow.

  4. Using Source Control:

    • How can users integrate Git with VS Code for version control? Describe the process of initializing a repository, making commits, and pushing changes to GitHub.

Submission Guidelines:

  • Your answers should be well-structured, concise, and to the point.
  • Provide screenshots or step-by-step instructions where applicable.
  • Cite any references or sources you use in your answers.
  • Submit your completed assignment by 1st July

se-assignment-5-anitahnzioki's People

Contributors

github-classroom[bot] avatar anitahnzioki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.