Skip to content

Commit ff88a08

Browse files
authored
Merge pull request #13807 from Mikejo5000/mikejo-br26
Update productivity guide with C# tips
2 parents c47938a + 8a1e262 commit ff88a08

14 files changed

+33
-351
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,11 @@
995995
"redirect_url": "/visualstudio/help-viewer/find-topics",
996996
"redirect_document_id": false
997997
},
998+
{
999+
"source_path": "docs/ide/csharp-developer-productivity.md",
1000+
"redirect_url": "/visualstudio/ide/productivity-features",
1001+
"redirect_document_id": false
1002+
},
9981003
{
9991004
"source_path": "docs/ide/how-to-manage-build-configurations-with-visual-basic-developer-settings-applied.md",
10001005
"redirect_url": "/visualstudio/ide/understanding-build-configurations",

docs/ide/csharp-developer-productivity.md

Lines changed: 0 additions & 337 deletions
This file was deleted.

docs/ide/productivity-features.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Efficient coding, debugging, & keyboard shortcuts
33
description: Learn about the keyboard shortcuts and productivity features in Visual Studio that can help you efficiently write code, debug code, and handle errors.
4-
ms.date: 03/05/2025
4+
ms.date: 04/08/2025
55
ms.topic: conceptual
66
author: Mikejo5000
77
ms.author: mikejo
@@ -23,7 +23,13 @@ Save time digging through menus by quickly searching for anything you need, incl
2323
- **Mock code using task list**. If you don't have enough requirements to complete a piece of code, use Task List to track code comments that use tokens such as `TODO` and `HACK`, or custom tokens, and to manage shortcuts that take you directly to a predefined location in code. For more information, see [Use the Task List](../ide/using-the-task-list.md).
2424

2525
- **Use Solution Explorer shortcuts**. If you're new to Visual Studio, these shortcuts come in handy and save you time while you're coming up to speed on a new codebase. For the full list of shortcuts, see [Default keyboard shortcuts in Visual Studio](../ide/default-keyboard-shortcuts-in-visual-studio.md#bkmk_solutionexplorerGLOBAL).
26+
::: zone-end
2627

28+
::: zone pivot="programming-language-csharp"
29+
- **Use keyboard shortcuts from a different editor**. If you're coming from another IDE or coding environment, you can change your keyboard scheme to *Visual Studio Code* or *ReSharper (Visual Studio)* using **Tools > Options** settings for **Environment > Keyboard**. Some extensions also offer keyboard schemes: [HotKeys for Visual Studio (ReSharper/IntelliJ)](https://marketplace.visualstudio.com/items?itemName=JustinClareburtMSFT.HotKeys) and [VSVim](https://marketplace.visualstudio.com/items?itemName=JaredParMSFT.VsVim).
30+
::: zone-end
31+
32+
::: zone pivot="programming-language-csharp,programming-language-cpp,programming-language-vb,programming-language-all"
2733
- **[Identify and customize keyboard shortcuts in Visual Studio](../ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md)**. You can identify keyboard shortcuts for Visual Studio commands, customize those shortcuts, and export them for others to use. You can always find and change a keyboard shortcut in the Options dialog box.
2834

2935
- **Make Visual Studio more accessible**. Visual Studio has built-in accessibility features that are compatible with screen readers and other assistive technologies. See [Accessibility tips and tricks for Visual Studio](../ide/reference/accessibility-tips-and-tricks.md) for the full list of available features.
@@ -79,6 +85,16 @@ Write code more quickly by using the following features.
7985
::: moniker-end
8086
::: zone-end
8187

88+
::: zone pivot="programming-language-csharp"
89+
- **Apply code styles with code cleanup** Visual Studio provides on-demand formatting of your code file, including code style preferences, through the Code Cleanup feature. To run Code Cleanup, select the broom icon at the bottom of the editor or press **Ctrl+K, Ctrl+E**. For detailed instructions, see [Code style preferences](../ide/code-styles-and-code-cleanup.md).
90+
::: zone-end
91+
92+
::: zone pivot="programming-language-csharp,programming-language-cpp,programming-language-vb"
93+
::: moniker range=">=vs-2022"
94+
- **Write or generate unit tests** Test Explorer automatically discovers unit tests written using supported test frameworks. You can use Copilot or built-in features to generate unit tests. For more information, see [Unit test basics](../test/unit-test-basics.md) and [Create unit test method stubs from code](../test/create-unit-tests-menu.md).
95+
::: moniker-end
96+
::: zone-end
97+
8298
::: zone pivot="programming-language-csharp,programming-language-vb"
8399
- **Install and manage NuGet packages in Visual Studio**. NuGet is a mechanism through which developers can create, share, and consume useful code. The NuGet Package Manager UI in Visual Studio on Windows allows you to easily install, uninstall, and update NuGet packages in projects and solutions. For more information, see [Install and manage packages in Visual Studio using the NuGet Package Manager](/nuget/consume-packages/install-use-packages-visual-studio).
84100
::: zone-end
@@ -103,6 +119,8 @@ You can use various techniques to find and move to specific locations in your co
103119

104120
- **See frequently used files with Edit/Go to Recent File**. Use the Go To commands in Visual Studio to perform a focused search of your code to help you quickly find specified items. For detailed instructions, see [Find code using Go To commands](../ide/go-to.md).
105121

122+
- **Jump to any file, type, member, or symbol declaration.** Visual Studio has a feature called **Go To All** that you can use to quickly find the code you want. For detailed instructions, see [Find code using Go To commands](../ide/go-to.md).
123+
106124
- **Synchronize Solution Explorer** For large solutions, use the **Sync with Active Document** button in Solution Explorer to find the active document within the project hierarchy.
107125

108126
- **Move the [Properties window](../ide/reference/properties-window.md) to the right-hand side**. If you're looking for a more familiar window layout, you can move the Properties window in Visual Studio by pressing **F4**.

docs/ide/reference/convert-foreach-linq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ public class Class1
7373

7474
- [Refactoring](../refactoring-in-visual-studio.md)
7575
- [Preview Changes window](../../ide/preview-changes.md)
76-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
76+
- [Productivity features](../productivity-features.md)

docs/ide/reference/convert-local-function-method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ This refactoring applies to:
3737
## See also
3838

3939
- [Refactoring](../refactoring-in-visual-studio.md)
40-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
40+
- [Productivity features](../productivity-features.md)

docs/ide/reference/extract-interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ This refactoring applies to:
7777
## See also
7878

7979
- [Refactoring](../refactoring-in-visual-studio.md)
80-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
80+
- [Productivity features](../productivity-features.md)

docs/ide/reference/generate-deconstructor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ This code generation applies to:
4646

4747
- [Code generation](../code-generation-in-visual-studio.md)
4848
- [Preview changes](../../ide/preview-changes.md)
49-
- [Tips for .NET developers](../csharp-developer-productivity.md)
49+
- [Productivity features](../productivity-features.md)

docs/ide/reference/generate-usings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ This code generation applies to:
4646

4747
- [Code generation](../code-generation-in-visual-studio.md)
4848
- [Preview Changes](../../ide/preview-changes.md)
49-
- [Tips for .NET developers](../csharp-developer-productivity.md)
49+
- [Productivity features](../productivity-features.md)

docs/ide/reference/invert-conditional-logical.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ This refactoring applies to:
3737
## See also
3838

3939
- [Refactoring](../refactoring-in-visual-studio.md)
40-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
40+
- [Productivity features](../productivity-features.md)

docs/ide/reference/invert-if-statement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ This refactoring applies to:
4141
## See also
4242

4343
- [Refactoring](../refactoring-in-visual-studio.md)
44-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
44+
- [Productivity features](../productivity-features.md)

docs/ide/reference/paste-json-xml.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,4 @@ namespace PasteDemo
163163
## See also
164164

165165
- [Features of the code editor](../../ide/writing-code-in-the-code-and-text-editor.md)
166-
- Get started tips in [Visual Studio productivity guide for C# developers](../csharp-developer-productivity.md)
167166
- [Productivity guide for Visual Studio](../productivity-features.md)

docs/ide/reference/unused-values-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ This refactoring applies to:
3737
## See also
3838

3939
- [Overview of Code Refactoring in Visual Studio](../refactoring-in-visual-studio.md)
40-
- [The Visual Studio productivity guide for C# developers](../csharp-developer-productivity.md)
40+
- [Productivity features](../productivity-features.md)

docs/ide/reference/use-block-body-lambda.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ This refactoring applies to:
3434
## See also
3535

3636
- [Refactoring](../refactoring-in-visual-studio.md)
37-
- [Tips for .NET Developers](../csharp-developer-productivity.md)
37+
- [Productivity features](../productivity-features.md)

docs/toc.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@
584584
href: ide/productivity-features.md
585585
- name: Productivity shortcuts
586586
href: ide/productivity-shortcuts.md
587-
- name: Tips for C# developers
588-
displayName: ReSharper
589-
href: ide/csharp-developer-productivity.md
590587
- name: Customize keyboard shortcuts
591588
href: ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md
592589
- name: Use the keyboard exclusively

0 commit comments

Comments
 (0)