-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Update create .NET console app to include Codespaces zone pivot #51321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the .NET console application tutorial to support both Visual Studio Code and GitHub Codespaces using zone pivots. The changes enable users to choose between two development environments and follow platform-specific instructions.
Changes:
- Added zone pivot configuration to allow toggling between Visual Studio Code and Codespaces views
- Created Codespaces-specific tutorial content with instructions for single-file C# apps
- Added new code snippet file for the Codespaces tutorial path
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| docs/zone-pivot-groups.yml | Adds new zone pivot group code-editor-set-one with vscode and codespaces pivots |
| docs/core/tutorials/with-visual-studio-code.md | Implements zone pivots throughout the tutorial with separate content for VS Code and Codespaces |
| docs/core/tutorials/snippets/with-visual-studio-code/csharp/HelloWorld.cs | New snippet file containing HelloWorld and MainMethod code examples for Codespaces |
Summary
This pull request updates the .NET console application tutorial to support both Visual Studio Code and GitHub Codespaces, making it easier for users to follow platform-specific instructions. It introduces zone pivots to the documentation, adds new code snippets for Codespaces, and provides tailored steps and explanations for each environment.
Documentation enhancements for platform support:
code-editor-set-onetodocs/zone-pivot-groups.yml, enabling the tutorial to present separate instructions for Visual Studio Code and GitHub Codespaces.docs/core/tutorials/with-visual-studio-code.mdto use zone pivots, providing distinct sections, prerequisites, and instructions for each editor. This includes new introductory checklists, steps for launching environments, and tailored guidance throughout the tutorial.Codespaces-specific instructions and code:
docs/core/tutorials/snippets/with-visual-studio-code/csharp/HelloWorld.cscontaining both the basic "Hello, World!" example and the enhanced version that prompts for the user's name and displays the date/time, referenced in the Codespaces tutorial.Additional resources and cleanup info for Codespaces:
Fixes #50708
Internal previews