Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Basic Operations in Visual Studio Code

The document provides a comprehensive overview of basic operations in Visual Studio Code, including launching the application, creating and opening folders, and basic file editing. It also covers navigation, terminal integration, using extensions, and customizing settings. This serves as a foundational guide for managing files and folders, particularly for Python development.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Basic Operations in Visual Studio Code

The document provides a comprehensive overview of basic operations in Visual Studio Code, including launching the application, creating and opening folders, and basic file editing. It also covers navigation, terminal integration, using extensions, and customizing settings. This serves as a foundational guide for managing files and folders, particularly for Python development.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Basic Operations in Visual Studio Code

Opening Visual Studio Code


- Launching the Application: Click on the VS Code icon on your desktop or in your
applications folder to open it.
- Initial Interface Overview: Upon opening, VS Code presents a welcome screen with options
to open files, create new files, open folders, and access recent files or projects.

Creating and Opening Folders


- Creating a New Folder: VS Code itself doesn't create folders directly. Instead, create a new
folder using your operating system's file explorer. Right-click where you want the folder,
select "New Folder," and name it.

- Opening a Folder in VS Code:


1. Go to "File" > "Open Folder" in the top menu.
2. Navigate to the folder you created and select it.
3. Click "Open". VS Code will now display the contents of this folder in the Explorer pane
on the left side.

Creating Files
- Within VS Code:
1. In the Explorer pane, right-click on the folder where you want to create a file.
2. Select "New File".
3. Name your file (e.g., `main.py` for a Python file) and press Enter. The new file will open
in the editor.

Basic Editing
- Writing and Editing Code: Click on the file in the Explorer pane to open it in the editor. You
can now write or edit code.
- Saving Files: Use "Ctrl + S" (Windows/Linux) or "Cmd + S" (Mac) to save your changes.
- Closing Files: Close a file by clicking the 'X' on the file's tab or using "Ctrl + W"
(Windows/Linux) or "Cmd + W" (Mac).

Navigation and Search


- Quick File Navigation: Press "Ctrl + P" (Windows/Linux) or "Cmd + P" (Mac) and start
typing the file name to quickly navigate to a file.
- Search Across Files: Use "Ctrl + F" for in-file search and "Ctrl + Shift + F" for a global
search across all files in your project.

Splitting the Editor


- Viewing Multiple Files: Click and drag a file's tab to the side of the editor to split the view.
You can view and edit multiple files side-by-side.

Terminal Integration
- Opening the Integrated Terminal: Use "Ctrl + `" (backtick) to open the integrated terminal.
This terminal lets you run commands directly in VS Code.

Using Extensions
- Installing Extensions: To enhance functionality, go to the Extensions view by clicking on the
square icon on the left side, or use "Ctrl + Shift + X". Search for extensions (e.g., Python
extension for Python development) and click "Install".

Customising VS Code
- Preferences and Settings: Access settings by going to "File" > "Preferences" > "Settings".
Here, you can customise various aspects of VS Code, like theme, font size, editor settings,
etc.

This overview provides a foundational understanding of managing files and folders, editing,
and navigating within Visual Studio Code. Each section can be expanded with screenshots,
step-by-step instructions, and additional tips relevant to Python development for a more
comprehensive guide.

You might also like