Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Format SQL Code #9119

Closed
eladcandroid opened this issue Jul 12, 2016 · 4 comments
Closed

Support Format SQL Code #9119

eladcandroid opened this issue Jul 12, 2016 · 4 comments
Labels
*extension-candidate Issue identified as good extension implementation

Comments

@eladcandroid
Copy link

  • VSCode Version: 1.3
  • OS Version: Fedora 24

Steps to Reproduce:

  1. Paste a SQL code
  2. Try to format the code
  3. No change..
    screenshot from 2016-07-12 11-46-08
@weinand weinand added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities labels Jul 12, 2016
@alefragnani
Copy link

I was starting to create an extension for this 😄

I tested 3 different npm packages that does the job, but for complex statements, the results were mixed (not as good as I wanted). But I didn't play that much with each package to see how flexible it was to customize the formatting rules.

The ones I tested:

  • format-sql
  • sqlformatter
  • vkbeautify

@weinand do you pretend use an in house approach or search for npm packages? Let'me know if you need any help/info about the results that I found.

@weinand
Copy link
Contributor

weinand commented Jul 13, 2016

@eladcandroid I'm just doing VS Code issue triage this week, so don't expect any additional insights or recommendations from me. I've added the 'help-wanted' tag to indicate that the VS Code team does not intend to work on this feature request.

Two tips:

  • You might want to contact the authors of other SQL extensions.
  • Consider to investigate how other VS Code language extensions provide formatting functionality.

@dmahendrakar
Copy link

dmahendrakar commented Aug 1, 2016

I want to contribute this feature. I have been able to investigate how javascript VS Code language extension provide formatting functionality. Can anyone please tell me why "onLanguage:javascript" activationEvent is handled in TypeScript package.json?

@aaronsteers
Copy link

I'm interested in contributing to this cause. Does anyone have a project started?

@joaomoreno joaomoreno added *extension-candidate Issue identified as good extension implementation and removed feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities labels Feb 14, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation
Projects
None yet
Development

No branches or pull requests

6 participants