You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ssms/github-copilot/code-completions.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ For related information about GitHub Copilot Chat, see [Use the GitHub Copilot C
24
24
25
25
## How Code Completions work
26
26
27
-
Code Completions for GitHub Copilot in SSMS use advanced machine learning models trained on a vast dataset of publicly available code from GitHub repositories. As you type code, the AI analyzes the context and provides relevant suggestions in real time. Context for GitHub Copilot in SSMS includes the schema for the database to which you're connected in the active editor, the contents of the current and all open editors. You can also obtain suggestions by writing a comment, often preceeded by `--`, in natural language that describes what you want the code to do.
27
+
Code Completions for GitHub Copilot in SSMS use advanced machine learning models trained on a vast dataset of publicly available code from GitHub repositories. As you type code, the AI analyzes the context and provides relevant suggestions in real time. Context for GitHub Copilot in SSMS includes the schema for the database to which you're connected in the active editor, the contents of the current and all open editors. You can also obtain suggestions by writing a comment, often preceded by `--`, in natural language that describes what you want the code to do.
28
28
29
29
## Prerequisites
30
30
@@ -41,16 +41,18 @@ Code Completions for GitHub Copilot in SSMS supports the T-SQL language.
41
41
As you type comments or T-SQL in the editor, GitHub Copilot provides context-aware code completions and suggestions.
42
42
43
43
1. Open SSMS and connect to your database in query editor.
44
+
44
45
1. In the editor, enter a comment to see inline code suggestions from GitHub Copilot:
45
46
46
47
```sql
47
48
--list all tables in this database
48
49
```
49
50
50
51
1. Select enter to see the suggestion.
52
+
51
53
1. To accept the suggestion, select <kbd>Tab</kbd>. To reject the suggestion, select <kbd>Esc</kbd> or continue typing.
52
54
53
-
Suggestions can also be accepted, either partially or entirely, with a mouse click starting in SSMS 22.3. To change the keyboard shortcut used to accept suggestions, go to **Tools** > **Options** > **All Settings** > **Text Editor** > **Code Completions** > **Preferences** > **Accept code compeltions using keyboard shortcuts**.
55
+
Suggestions can also be accepted, either partially or entirely, with a mouse or other pointing device starting in SSMS 22.3. To change the keyboard shortcut used to accept suggestions, go to **Tools** > **Options** > **All Settings** > **Text Editor** > **Code Completions** > **Preferences** > **Accept code completions using keyboard shortcuts**.
0 commit comments