Skip to content

Commit 4984a27

Browse files
committed
correx
1 parent 781b593 commit 4984a27

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/ide/code-snippets.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Understand and use code snippets
33
description: Explore code snippets, which are small blocks of reusable code you can insert into a code file, and learn how to find and use them.
4-
ms.date: 04/04/2024
4+
ms.date: 04/05/2024
55
ms.topic: conceptual
66
f1_keywords:
77
- vs.ExpansionManagerImport
@@ -73,7 +73,10 @@ To add this expansion snippet:
7373

7474
1. In the code editor, position your cursor where you want to add the snippet.
7575
1. Right-click and select **Insert Snippet** from the right-click context menu, or use the menu bar or keyboard commands.
76-
1. Double-click **Visual C#**, and then double-click **tryf** in the dropdown list. Alternatively, you can type *v*, **Tab**, *tryf*, **Tab**.
76+
1. Open the **Visual C#** folder, and then double-click **tryf** in the dropdown list, or select **tryf** and press **Tab**.
77+
78+
>[!NOTE]
79+
>You can also place your cursor at the insertion point, type *tryf*, and then press **Tab** twice.
7780
7881
### Add a surround-with snippet
7982

@@ -117,7 +120,7 @@ If you change `newPropertyValue` to `m_property`, every instance of `newProperty
117120

118121
The code in a code snippet shows only the most basic way to do something. For most applications, the code must be modified to suit the application.
119122

120-
### Handle exceptions
123+
### Exception handling
121124

122125
Typically, code snippet `Try...Catch` blocks catch and rethrow all exceptions, but that might not be the right choice for your project. For each exception, there are several ways to respond. For examples, see [How to handle an exception using try/catch (C#)](/dotnet/csharp/programming-guide/exceptions/how-to-handle-an-exception-using-try-catch) and [Try...Catch...Finally statement (Visual Basic)](/dotnet/visual-basic/language-reference/statements/try-catch-finally-statement).
123126

0 commit comments

Comments
 (0)