Coder Social home page Coder Social logo

alldwarf-sql-format's Introduction

AllDwarf's SQL Formatter

AllDwarf's SQL Formatter is a Visual Studio Code extension that provides advanced formatting options for SQL code. It uses the sql-formatter library to format SQL code according to your custom conditions.

Features

  • Format SQL code using custom conditions.
  • Support for formatting SQL code in the entire document or a selected range.
  • Integration with the "Format Document" and "Format Document with" commands in Visual Studio Code.

Installation

To install AllDwarf's SQL Formatter, follow these steps:

  1. Open Visual Studio Code.
  2. Press Ctrl+Shift+X (Windows, Linux) or Cmd+Shift+X (macOS) to open the Extensions view.
  3. Search for "AllDwarf's SQL Formatter" in the Marketplace.
  4. Click the "Install" button next to the extension.
  5. Reload Visual Studio Code to activate the extension.

Usage

To use AllDwarf's SQL Formatter, follow these steps:

  1. Open a SQL file in Visual Studio Code.
  2. Press Ctrl+Shift+I (Windows, Linux) or Cmd+Shift+I (macOS) to format the entire document using your custom conditions.
  3. Alternatively, select some or all of the SQL code in the file and right-click on the selection. Choose "Format Document with" and select "AllDwarf's SQL Formatter" from the list of available formatters to format the selected code using your custom conditions.

Configuration

AllDwarf's SQL Formatter supports the following configuration options:

  • alldwarf-sql-format.transform: Specifies the case transformation to apply to keywords. Valid values are "none", "uppercase", and "lowercase". Default is "none".
  • alldwarf-sql-format.insertFinalNewline: Specifies whether to insert a newline at the end of the formatted SQL code. Default is false.

To configure these options, open the Visual Studio Code settings editor and search for "AllDwarf's SQL Formatter". You can then modify the settings to your liking.

License

AllDwarf's SQL Formatter is licensed under the MIT License. See the LICENSE file for more information.

alldwarf-sql-format's People

Contributors

alldwarf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.