
Help > Editor Playground.Īccess all available commands based on your current context. Try out VS Code's code editing features, like multi-cursor editing, IntelliSense, Snippets, Emmet, and many more. If you are looking to improve your code editing skills open the Interactive Editor Playground. As you discover and learn, the walkthroughs track your progress. Pick a Walkthrough for a self-guided tour through the setup steps, features, and deeper customizations that VS Code offers. You will get an overview of VS Code's customizations and features. The best way of exploring VS Code hands-on is to open the Get Started page. Prefer a video? You can watch a recent Microsoft Build talk Visual Studio Code tips and tricks, which describes 20 tips and tricks for working productively with VS Code. You can find platform specific setup instructions at Running VS Code on Linux, macOS, and Windows. If you don't have Visual Studio Code installed, go to the Download page. This topic goes pretty fast and provides a broad overview, so be sure to look at the other in-depth topics in Getting Started and the User Guide to learn more. You'll become familiar with its powerful editing, code intelligence, and source code control features and learn useful keyboard shortcuts. "Tips and Tricks" lets you jump right in and learn how to be productive with Visual Studio Code.


Before the first step, make sure to locate the appropriate MDF and LDF files for a database you want to work with. Also, any existing connections to a database must be closed. In case a database is being used by any Windows services or other resources, these must be stopped in order to allow altering SQL database files. We’ll use a sample AdventureWorks database in this case.

Let’s see how to move database files to another location.

However, what if a SQL database is a production one or it is being constantly used by the specific application? This means that when it comes to the point of a low disk space, there should be a way to move database files (MDF and LDF) to another drive (with sufficient disk space) while the actual database will still be hosted by the same SQL Server instance. By default, SQL Server stores database files in its installation folder, specifically in the Data folder: How often you got to the point that for any reason you don’t have enough space on the specific drive to host a database? In case of database development or other tasks outside the production environment, this should not be a problem as a database can be eventually re-created, restored from a backup and set to be hosted on another location.
