-
Notifications
You must be signed in to change notification settings - Fork 461
customize options
The mssql extension allows you to customize the extension settings in your VS Code workspace or user settings. All mssql options begin the prefix 'mssql' and are in json format.
To access settings, go to File > Preferences (Code > Preferences on Mac) and choose user or workspace settings. You can place your settings in the settings.json file that opens. Modifying and saving this file will overwrite the default settings.
User settings apply globally to any VS Code instance you open. Workspace settings apply only within a workspace that is opened.
You can learn more about vscode user and workspace settings here.
When set to true, logs debug output to the VS Code console
Setting : mssql.logDebugInfo
Default Value : false
Example
"mssql.logDebugInfo": true
Customize keyboard shortcuts related to the results window.
Ctrl represents ctrl on windows/linux and cmd on mac. Some key combinations might not work with these events because they overlap with shortcuts.
You can find out more about customizing shortcuts here.
Setting : mssql.shortcuts
Default Value :
event.toggleResultPane - ctrl+alt+r
event.toggleMessagePane - ctrl+alt+y
event.prevGrid - ctrl+up
event.nextGrid - ctrl+down
event.copySelection - ctrl+c
Example
"mssql.shortcuts": {
"event.toggleResultPane": "ctrl+alt+r",
"event.toggleMessagePane": "ctrl+alt+y",
"event.prevGrid": "ctrl+up",
"event.nextGrid": "ctrl+down",
"event.copySelection": "ctrl+c",
"event.toggleMagnify": "ctrl+alt+m",
"event.selectAll": "ctrl+alt+a",
"event.saveAsJSON": "ctrl+alt+j",
"event.saveAsCSV": "ctrl+alt+c"
}
You can choose to include or exclude column headers in the CSV file with the includeHeaders
setting. When set to true, the headers are included in the saved CSV file.
Setting : mssql.saveAsCSV
Default Value :
includeHeaders - true
Example
"mssql.saveAsCsv": {
"includeHeaders": true
}
When set to true, keeps the messages pane open default in the results window.
Setting : mssql.messagesDefaultOpen
Default Value : true
Example
"mssql.messagesDefaultOpen": false
You can find out how to set connection information in your settings here.
You can turn on or off specific IntelliSense features using the following settings option.
"mssql.intelliSense.enableIntelliSense": {
"type": "boolean",
"default": true,
"description": "Should IntelliSense be enabled"
},
"mssql.intelliSense.enableErrorChecking": {
"type": "boolean",
"default": true,
"description": "Should IntelliSense error checking be enabled"
},
"mssql.intelliSense.enableSuggestions": {
"type": "boolean",
"default": true,
"description": "Should IntelliSense suggestions be enabled"
},
"mssql.intelliSense.enableQuickInfo": {
"type": "boolean",
"default": true,
"description": "Should IntelliSense quick info be enabled"
},
"mssql.intelliSense.lowerCaseSuggestions": {
"type": "boolean",
"default": false,
"description": "Should IntelliSense suggestions be lowercase"
}
Example to set lower case for the keyword auto-completion
"mssql.intelliSense.lowerCaseSuggestions": true
- Getting started tutorial
- Enable Integrated Authentication on macOS and Linux using Kerberos
- Manage connection profiles
- Customize keyboard shortcuts
- Customize extension options
- Contributing
- Usage reporting
- OpenSSL configuration (Mac Only)
- Pre-Windows 10 pre-requisite
- Troubleshooting
- Operating Systems
- Releases