Ensiklopedia VibeKoding: Fundamentals of Integrated Development Environment (IDE).Ensiklopedia VibeKoding: Fundamentals of Integrated Development Environment (IDE).
This chapter will take you deep into the core productivity tool for programmers—the Integrated Development Environment (IDE). We'll start from the design philosophy of IDEs, analyze their core components one by one, and demonstrate their working principles through a virtual IDE.This chapter will take you deep into the core productivity tool for programmers—the Integrated Development Environment (IDE). We'll start from the design philosophy of IDEs, analyze their core components one by one, and demonstrate their working principles through a virtual IDE.
In the process of learning and using an IDE, you may encounter various buttons, menus, or code errors that you don't understand. At this time, don't panic—using an AI assistant is the most efficient solution.In the process of learning and using an IDE, you may encounter various buttons, menus, or code errors that you don't understand. At this time, don't panic—using an AI assistant is the most efficient solution.
Recommended Approach: Screenshot and Ask AIRecommended Approach: Screenshot and Ask AI
Modern AIs (such as ChatGPT, Claude, DeepSeek, etc.) have powerful image recognition capabilities. When you encounter unfamiliar interface elements or complex code snippets:Modern AIs (such as ChatGPT, Claude, DeepSeek, etc.) have powerful image recognition capabilities. When you encounter unfamiliar interface elements or complex code snippets:
------
In the software development process, programmers need to frequently write code, manage files, compile and run programs, debug errors, and so on. If all these operations needed to be completed in different independent software (for example, using Notepad to write code, command line to compile, and file folders to manage files), efficiency would be extremely low and error-prone.In the software development process, programmers need to frequently write code, manage files, compile and run programs, debug errors, and so on. If all these operations needed to be completed in different independent software (for example, using Notepad to write code, command line to compile, and file folders to manage files), efficiency would be extremely low and error-prone.
The core value of an IDE (Integrated Development Environment) lies in integration. It integrates various tools needed for software development (editor, compiler, debugger, file manager, etc.) into a unified graphical interface, providing a one-stop working experience.The core value of an IDE (Integrated Development Environment) lies in integration. It integrates various tools needed for software development (editor, compiler, debugger, file manager, etc.) into a unified graphical interface, providing a one-stop working experience.
VS Code is one of the most popular IDEs. Although it is essentially a lightweight code editor, through its powerful plugin system, it has all the core functions of an IDE (code editing, debugging, version control, etc.), and is therefore widely regarded as the preferred IDE for modern frontend and full-stack development.VS Code is one of the most popular IDEs. Although it is essentially a lightweight code editor, through its powerful plugin system, it has all the core functions of an IDE (code editing, debugging, version control, etc.), and is therefore widely regarded as the preferred IDE for modern frontend and full-stack development.
In short, IDEs aim to maximize developer productivity and reduce the time cost of switching between different tools.In short, IDEs aim to maximize developer productivity and reduce the time cost of switching between different tools.
> 🔗 Resource Downloads:> 🔗 Resource Downloads:
>>
> - [VS Code Official Download](https://code.visualstudio.com/Download)> - [VS Code Official Download](https://code.visualstudio.com/Download)
> - [VS Code Web Version Experience](https://vscode.dev/)> - [VS Code Web Version Experience](https://vscode.dev/)
>>
> VS Code (Visual Studio Code) is a free, open-source, cross-platform code editor developed by Microsoft. With its lightweight nature, rich plugins, and fast startup speed, it has become one of the most popular development tools worldwide. Whether you're writing Python, JavaScript, or C++, VS Code can become the most suitable "tool" for you through plugin installation.> VS Code (Visual Studio Code) is a free, open-source, cross-platform code editor developed by Microsoft. With its lightweight nature, rich plugins, and fast startup speed, it has become one of the most popular development tools worldwide. Whether you're writing Python, JavaScript, or C++, VS Code can become the most suitable "tool" for you through plugin installation.
------
The interface layout of modern IDEs (taking VS Code as an example) has been carefully designed and usually contains the following four core areas:The interface layout of modern IDEs (taking VS Code as an example) has been carefully designed and usually contains the following four core areas:
Displays the project's file tree, supports creating, renaming, moving, and deleting files, providing a global view and quick access to the project structure.Displays the project's file tree, supports creating, renaming, moving, and deleting files, providing a global view and quick access to the project structure.
The core area for writing and modifying code. Supports syntax highlighting, intelligent code completion, syntax checking, and other functions, providing an efficient and intelligent code writing environment.The core area for writing and modifying code. Supports syntax highlighting, intelligent code completion, syntax checking, and other functions, providing an efficient and intelligent code writing environment.
Interacts with the underlying system and views running results. Includes Terminal, Output, etc., used for executing commands, viewing logs, and debugging.Interacts with the underlying system and views running results. Includes Terminal, Output, etc., used for executing commands, viewing logs, and debugging.
Located on the far left of the interface, containing icons for file explorer, search, Git management, etc., used to quickly switch between different work contexts (such as "writing code" and "submitting code").Located on the far left of the interface, containing icons for file explorer, search, Git management, etc., used to quickly switch between different work contexts (such as "writing code" and "submitting code").
------
Seeing is believing. To let you truly feel the convenience of an IDE, we have prepared a virtual VS Code environment for you.Seeing is believing. To let you truly feel the convenience of an IDE, we have prepared a virtual VS Code environment for you.
Please try the following operations:Please try the following operations:
------
You might be curious: Why can the same software write Python, C++, and do web development? How does it do it?You might be curious: Why can the same software write Python, C++, and do web development? How does it do it?
Actually, VS Code's design philosophy can be summarized in one sentence: "Minimalist core, pluggable capabilities."Actually, VS Code's design philosophy can be summarized in one sentence: "Minimalist core, pluggable capabilities."
Imagine, the VS Code you just downloaded, if no plugins are installed, actually doesn't understand programming.Imagine, the VS Code you just downloaded, if no plugins are installed, actually doesn't understand programming.
At this point, it is essentially just a powerful text editor.At this point, it is essentially just a powerful text editor.
print("Hello") is Python code, nor does it know that int main() is a C++ entry point.But it doesn't know that print("Hello") is Python code, nor does it know that int main() is a C++ entry point.To make VS Code able to "understand" code, we need to install Extensions.To make VS Code able to "understand" code, we need to install Extensions.
Plugins are like specialized translators:Plugins are like specialized translators:
.py files.Python Plugin: Tells VS Code what variables are, what functions are, and how to run .py files.This design makes VS Code very lightweight—if you don't write Java, you don't have to carry Java's runtime environment.This design makes VS Code very lightweight—if you don't write Java, you don't have to carry Java's runtime environment.
Let's look at how VS Code, plugins, and the underlying environment collaborate through a specific scenario.Let's look at how VS Code, plugins, and the underlying environment collaborate through a specific scenario.
Suppose you write a line of Python code and click Run or Debug:Suppose you write a line of Python code and click Run or Debug:
VS Code detects the .py suffix and automatically wakes up the Python Plugin. The plugin immediately takes over the editor, begins syntax analysis, colors the code differently (syntax highlighting), and provides intelligent suggestions.VS Code detects the .py suffix and automatically wakes up the Python Plugin. The plugin immediately takes over the editor, begins syntax analysis, colors the code differently (syntax highlighting), and provides intelligent suggestions.
When you issue a command, the plugin itself does not directly execute the code, but delegates the task to underlying professional tools:When you issue a command, the plugin itself does not directly execute the code, but delegates the task to underlying professional tools:
python main.py) and sends it to the system's terminal for execution.Run Mode: The plugin generates a command (such as python main.py) and sends it to the system's terminal for execution.The Python interpreter (or compiler) executes the code and returns the results (or error messages) to the plugin. The plugin then "carries" this information back and displays it in VS Code's bottom terminal panel.The Python interpreter (or compiler) executes the code and returns the results (or error messages) to the plugin. The plugin then "carries" this information back and displays it in VS Code's bottom terminal panel.
If the above formula is a bit abstract, we can imagine the process of writing code as dining at a restaurant:If the above formula is a bit abstract, we can imagine the process of writing code as dining at a restaurant:
Conclusion:Conclusion:
------
import { onMounted } from 'vue'import { onMounted } from 'vue'
onMounted(() => {onMounted(() => {
const openTarget = () => {const openTarget = () => {
const hash = window.location.hashconst hash = window.location.hash
if (hash) {if (hash) {
try {try {
// Handle encoded characters in hash// Handle encoded characters in hash
const target = document.querySelector(decodeURIComponent(hash))const target = document.querySelector(decodeURIComponent(hash))
// If the target is a details element, open it// If the target is a details element, open it
if (target && target.tagName === 'DETAILS') {if (target && target.tagName === 'DETAILS') {
target.setAttribute('open', '')target.setAttribute('open', '')
}}
// If the target is inside a details element, open the parent details// If the target is inside a details element, open the parent details
const parentDetails = target?.closest('details')const parentDetails = target?.closest('details')
if (parentDetails) {if (parentDetails) {
parentDetails.setAttribute('open', '')parentDetails.setAttribute('open', '')
}}
} catch (e) {} catch (e) {
console.error(e)console.error(e)
}}
}}
}}
openTarget()openTarget()
window.addEventListener('hashchange', openTarget)window.addEventListener('hashchange', openTarget)
})})
To help everyone understand the meaning of each option, here we provide an in-depth analysis of the menu bar:To help everyone understand the meaning of each option, here we provide an in-depth analysis of the menu bar:
🖼️ Fundamentals of Integrated Development Environment (IDE)Fundamentals of Integrated Development Environment (IDE)
🖼️ Fundamentals of Integrated Development Environment (IDE)Fundamentals of Integrated Development Environment (IDE)
This menu is mainly responsible for: Creating/Opening Files, Opening Project Folders, Managing Workspaces, Saving and Closing.This menu is mainly responsible for: Creating/Opening Files, Opening Project Folders, Managing Workspaces, Saving and Closing.
> The most commonly used are: Open Folder to open a project; Open… to open a single file; then use Save / Save All to save changes, and finally use Close Editor / Close Folder to end the current work. Workspace-related content can be slowly learned as you get more projects, no need to understand everything at once.> The most commonly used are: Open Folder to open a project; Open… to open a single file; then use Save / Save All to save changes, and finally use Close Editor / Close Folder to end the current work. Workspace-related content can be slowly learned as you get more projects, no need to understand everything at once.
.code-workspace file to load a workspace with multiple folders/specific settings.Open Workspace from File…: Open a .code-workspace file to load a workspace with multiple folders/specific settings..code-workspace file for easy sharing/reuse.Save Workspace As…: Save the current workspace structure as a .code-workspace file for easy sharing/reuse.
This menu is mainly responsible for: Undo/Redo, Cut/Copy/Paste, Find/Replace, Comments and Editor Actions (improving editing efficiency).This menu is mainly responsible for: Undo/Redo, Cut/Copy/Paste, Find/Replace, Comments and Editor Actions (improving editing efficiency).
Ctrl + /, quickly comment/uncomment the current line.Toggle Line Comment: Ctrl + /, quickly comment/uncomment the current line.Shift + Alt + A, quickly comment/uncomment the selected area.Toggle Block Comment: Shift + Alt + A, quickly comment/uncomment the selected area.
This menu is mainly responsible for: Cursor Control, Multi-line Editing, Expand/Shrink Selection. This is VS Code's killer feature for improving efficiency.This menu is mainly responsible for: Cursor Control, Multi-line Editing, Expand/Shrink Selection. This is VS Code's killer feature for improving efficiency.
Alt + ↑ / ↓, adjust code line order directly without cut and paste.Move Line Up / Down: Alt + ↑ / ↓, adjust code line order directly without cut and paste.Ctrl + Alt + ↑ / ↓, enable multi-cursor mode to edit multiple lines simultaneously.Add Cursor Above / Below: Ctrl + Alt + ↑ / ↓, enable multi-cursor mode to edit multiple lines simultaneously.
This menu is mainly responsible for: Toggle Sidebar/Panel, Adjust Layout, Command Palette, Output and Debug Console.This menu is mainly responsible for: Toggle Sidebar/Panel, Adjust Layout, Command Palette, Output and Debug Console.
Ctrl + Shift + P / F1, VS Code's central command center, can search and execute all commands.Command Palette…: Ctrl + Shift + P / F1, VS Code's central command center, can search and execute all commands.Alt + Z, control whether long lines of code automatically wrap (does not affect actual file content).Word Wrap: Alt + Z, control whether long lines of code automatically wrap (does not affect actual file content).
This menu is mainly responsible for: Jumping Between Files, Jumping Between Symbols (Functions/Variables).This menu is mainly responsible for: Jumping Between Files, Jumping Between Symbols (Functions/Variables).
Ctrl + P, type filename to quickly open files.Go to File…: Ctrl + P, type filename to quickly open files.Ctrl + Shift + O, list functions/classes/variables in the current file for quick jumping.Go to Symbol in Editor…: Ctrl + Shift + O, list functions/classes/variables in the current file for quick jumping.F12, jump to the definition of the variable or function at the cursor.Go to Definition: F12, jump to the definition of the variable or function at the cursor.Shift + F12, see where this variable or function is used.Go to References: Shift + F12, see where this variable or function is used.Ctrl + G, jump to a specified line number.Go to Line/Column…: Ctrl + G, jump to a specified line number.
This menu is mainly responsible for: Start Debugging, Breakpoint Management.This menu is mainly responsible for: Start Debugging, Breakpoint Management.
F5, run the program in debug mode (supports breakpoints, variable watching).Start Debugging: F5, run the program in debug mode (supports breakpoints, variable watching).Ctrl + F5, run the program directly without attaching a debugger (slightly faster).Run Without Debugging: Ctrl + F5, run the program directly without attaching a debugger (slightly faster).F9, add or remove a red dot (breakpoint) on the current line.Toggle Breakpoint: F9, add or remove a red dot (breakpoint) on the current line.
This menu is mainly responsible for: New Terminal, Manage Terminal Windows.This menu is mainly responsible for: New Terminal, Manage Terminal Windows.
tasks.json.Run Task…: Run build/test tasks defined in tasks.json.