---
title: "Text Manipulation in Code Editor Shortcuts keys for SQL Server"  
description: "Text Manipulation in Code Editor Shortcuts keys for SQL Server"  
author: "Vijay Shukla"  
published: 2013-04-03  
updated: 2017-11-29  
canonical: https://www.mindstick.com/articles/1203/text-manipulation-in-code-editor-shortcuts-keys-for-sql-server  
category: "shortcut keys"  
tags: ["shortcut keys"]  
reading_time: 3 minutes  

---

# Text Manipulation in Code Editor Shortcuts keys for SQL Server

##### Text Manipulation in Code Editor Keyboard Shortcuts

| ##### Action | ##### SQL Server 2012 | ##### SQL Server 2008 R2 |
| --- | --- | --- |
| Insert a new line | ENTER or SHIFT+ENTER | ENTER or SHIFT+ENTER |
| Swap the [characters](https://answers.mindstick.com/qa/42112/who-is-the-originator-of-avengers-characters) on either side of the [cursor](https://www.mindstick.com/articles/13003/create-a-simple-cursor-in-sql-server) (Does not apply to the SQL [Editor](https://www.mindstick.com/forum/78/how-avoid-the-html-tag-and-remove-the-formating-of-copy-in-ajax-editor).) | CTRL+T | CTRL+T |
| Delete one [character](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) to the right of the cursor | DELETE | DELETE |
| Delete one character to the left of the cursor | BACKSPACE or SHIFT+BACKSPACE | BACKSPACE or SHIFT+ BACKSPACE |
| Delete whitespace in the [selection](https://www.mindstick.com/blog/60/populate-records-in-second-listbox-according-to-the-selection-in-first-list-box), or deletes whitespace adjacent to the cursor if there is no selection | CTRL+K, C | No equivalent |
| Insert the number of spaces configured for the editor | TAB | TAB |
| Insert a blank line above the cursor | CTRL+ENTER | CTRL+ENTER |
| Insert a blank line below the cursor | CTRL+SHIFT+ ENTER | CTRL+SHIFT+ ENTER |
| Change the selected text to lowercase | CTRL+SHIFT+L | CTRL+SHIFT+L |
| Change the selected text to uppercase | CTRL+SHIFT+U | CTRL+SHIFT+U |
| Toggle between insert mode and overtype mode | INSERT | INSERT |
| Move selected lines to the left on tab stop | SHIFT+TAB | SHIFT+TAB |
| Delete the word to the right of the cursor | CTRL+DELETE | CTRL+DELETE |
| Delete the word to the left of the cursor | CTRL+BACKSPACE | CTRL+BACKSPACE |
| Transpose the words on either side of the cursor (Does not apply to the SQL Editor.) | CTRL+SHIFT+T | CTRL+SHIFT+T |
| Moves the line containing the cursor below the next line | SHIFT+ALT+T | No equivalent |
| Correctly indents the selected lines of code based on the surrounding lines of code | CTRL+K, CTRL+F | No equivalent |
| Set or remove a shortcut in the current line | CTRL+K, CTRL+H | No equivalent |
| Remove the comment syntax from the current line | CTRL+K, CTRL+U | No equivalent |
| Shows or hides spaces and tabs | CTRL+R, CTRL+W | No equivalent |
| Enables or disables word wrap in an editor | Alt+F, CTRL+W | No equivalent |
| Collapses all outlining regions to show just the outermost groups in the hierarchy | CTRL+M, CTRL+A | No equivalent |
| Collapses the currently selected outlining region | CTRL+M, CTRL+S | No equivalent |
| Expands all outlining regions on the page | CTRL+M, CTRL+X | No equivalent |
| Expands the currently selected outlining region | CTRL+M, CTRL+E | No equivalent |
| Collapses existing outlining regions | CTRL+M, CTRL+O |  |
| Toggles all text sections previously marked as hidden between the hidden and display [states](https://answers.mindstick.com/qa/95510/india-has-collaborated-with-which-country-to-create-150-villages-of-excellence-in-12-states-of-india). | CTRL+M, CTRL+L | No equivalent |
| Toggles the currently selected [hidden text](https://www.mindstick.com/forum/156286/what-is-hidden-text) [section](https://yourviews.mindstick.com/story/2851/is-c-section-bad) between the hidden and display states | CTRL+M, CTRL+M | No equivalent |
| Removes all outlining information in the [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) | CTRL+M, CTRL+P | No equivalent |
| Removes the outlining information for the currently selected region | CTRL+M, CTRL+U | No equivalent |

---

Original Source: https://www.mindstick.com/articles/1203/text-manipulation-in-code-editor-shortcuts-keys-for-sql-server

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
