At times you may have SQL Queries that are too big and not well formatted, which makes them hard to understand, if you are looking for a simple offline tool to format your SQL query or script you can make use of the Notepad++ Editor on your Windows device.
Steps: How to download SQL Formatting Plugin in Notepad++
- Open Notepad++ Editor.
- Now go to Menu: Plugins > Plugin Admin...
- Search for SQLinForm and tick the checkbox.
- Click on Install. Notepad++ will get restarted and the SQL plugin will be installed.
![SQLinForm for Notepad++ SQLinForm for Notepad++](https://code2care.org/howto/sql-formatting-plugin-in-notepad-plus-plus/images/SQLinForm for Notepad++.jpg)
Once downloaded, you will find the plugin under Tools.
![Example - Format SQL in Notepad++ using Plugin Example - Format SQL in Notepad++ using Plugin](https://code2care.org/howto/sql-formatting-plugin-in-notepad-plus-plus/images/Example - Format SQL in Notepad++ using Plugin.jpg)
As shown in the above screenshot example, we can select the text of an SQL query and go to SQLinForm > Format Selected SQL to format it. You will also see that the SQL Syntax is color-coded as well, which is super cool!
You can go to SQL Formatting Options to do customizations like select your type of Database, Quote Character, Delimiter, Escape Character, SQL Indention, and much more.
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- How to hide toolbar on Notepad++
- Change the default Line Encoding Notepad++ (CR LF)
- Notepad++ is about to exit prompt message
- How to force quit or kill Notepad++ Process
- Add Blank Lines Between Each Lines in Notepad++
- Install Notepad++ silently using Windows Powershell
- Prettify JSON in Notepad++
- Notepad++ Convert text from lower to upper case
- Must have CSV Plugins for Notepad++
- How to lock Notepad++ tabs?
- Column Mode Editing in Notepad++
- How to change background color in Notepad++
- Notepad++ sort by name with example
- How to rename a tab in Notepad++
- [Solved] Notepad++ Menu Bar Missing
- Where are Notepad++ temp unsaved files stored?
- Notepad++: How to add Quotes to CSV File
- How to check about details of Notepad++ text editor
- How to close all tabs of Notepad++?
- How choose alternate Tab Bar icon in Notepad++
- How to copy file name and path to clipboard in Notepad++
- Change default language highlighting in Notepad++
- Add Line Number before each line in Notepad++ using Column Editor
- Go to Line Number option in Windows Notepad
- How to show End of Line Characters in File using Notepad++
- Record Audio and Save on System Tool - Tools
- How to disable warnings while Python file execution - Python
- How to exit from nano command - Linux
- Turn Off Google Analytics intelligence Alert Emails - Google
- How to tar.gz a directory or folder Command - Linux
- How to Exit a File in Terminal (Bash/Zsh) - Linux
- clear is not recognized as an internal or external command operable program or batch file. - DOS
- How to change Android Titlebar theme color from Purple - Android