All Projects → Unibeautify → Vscode

Unibeautify / Vscode

Licence: mit
Unibeautify for VSCode

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Vscode

Php Namespace Resolver
PHP Namespace Resolver - VSCode Extension
Stars: ✭ 83 (-24.55%)
Mutual labels:  vscode, vscode-extension
Vscode Ptt
在 VSCode 瀏覽 PTT!
Stars: ✭ 110 (+0%)
Mutual labels:  vscode, vscode-extension
Css Flexbox Cheatsheet
VS Code extension that lets you open a CSS Flexbox cheatsheet directly in the editor.
Stars: ✭ 87 (-20.91%)
Mutual labels:  vscode, vscode-extension
Laserwave
A retro outrun / cyberpunk inspired VS Code theme
Stars: ✭ 102 (-7.27%)
Mutual labels:  vscode, vscode-extension
Vscode Js Annotations
Javascript / Typescript Parameter Annotations for Visual Studio Code
Stars: ✭ 110 (+0%)
Mutual labels:  vscode, vscode-extension
Vim
⭐ Vim for Visual Studio Code
Stars: ✭ 9,782 (+8792.73%)
Mutual labels:  vscode, vscode-extension
Vscode Numbered Bookmarks
Numbered Bookmarks Extension for Visual Studio Code
Stars: ✭ 90 (-18.18%)
Mutual labels:  vscode, vscode-extension
Laravel Blade Snippets Vscode
Laravel blade snippets and syntax highlight support for Visual Studio Code
Stars: ✭ 80 (-27.27%)
Mutual labels:  vscode, vscode-extension
Betterfountain
A screenwriting app integrated into visual studio code
Stars: ✭ 99 (-10%)
Mutual labels:  vscode, vscode-extension
Vscode Code Runner
Code Runner for Visual Studio Code
Stars: ✭ 1,332 (+1110.91%)
Mutual labels:  vscode, vscode-extension
Vscode Yuml
yUML extension for Visual Studio Code
Stars: ✭ 102 (-7.27%)
Mutual labels:  vscode, vscode-extension
Vscode Winteriscoming
Dark theme with fun and bright foreground colors
Stars: ✭ 105 (-4.55%)
Mutual labels:  vscode, vscode-extension
Vscode Solidity Auditor
Solidity language support and visual security auditor for Visual Studio Code
Stars: ✭ 108 (-1.82%)
Mutual labels:  vscode, vscode-extension
Vscode Rss
An RSS reader embedded in Visual Studio Code
Stars: ✭ 102 (-7.27%)
Mutual labels:  vscode, vscode-extension
Vscode Cssrem
Converts between `px` and `rem` units in VSCode
Stars: ✭ 81 (-26.36%)
Mutual labels:  vscode, vscode-extension
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (-20%)
Mutual labels:  vscode, vscode-extension
Glassit Vsc
VS Code Extension to set window to transparent on Windows platform.
Stars: ✭ 77 (-30%)
Mutual labels:  vscode, vscode-extension
Vscode Standard
VS Code extension for JavaScript Standard Style (`standard`) with automatic fixing
Stars: ✭ 78 (-29.09%)
Mutual labels:  vscode, vscode-extension
Vscode Mdx
MDX for Visual Studio Code
Stars: ✭ 91 (-17.27%)
Mutual labels:  vscode, vscode-extension
Flowmaker
flowmaker: JS to SVG flowchart generation extension for Vscode in realtime written in typescript and also download the SVG through local node server. Extension:
Stars: ✭ 108 (-1.82%)
Mutual labels:  vscode, vscode-extension

Unibeautify for VSCode

Build Status Visual Studio Marketplace Renovate enabled

Unibeautify for Visual Studio Code

demo

🎉 Install

Search for Unibeautify extension and click Install. See Install an extension for more details.

code --install-extension Glavin001.unibeautify-vscode

📚 Support

See https://github.com/Unibeautify/vscode/blob/master/src/beautifiers.ts for list of supported beautifiers.

# Beautifier Documentation
1 Black https://unibeautify.com/docs/beautifier-black.html
2 CSScomb https://unibeautify.com/docs/beautifier-csscomb.html
3 ClangFormat https://unibeautify.com/docs/beautifier-clangformat.html
4 ESLint https://unibeautify.com/docs/beautifier-eslint.html
5 Gofmt https://unibeautify.com/docs/beautifier-gofmt.html
6 JS-Beautify https://unibeautify.com/docs/beautifier-js-beautify.html
7 PHP-CS-Fixer https://unibeautify.com/docs/beautifier-php-cs-fixer.html
8 PHP_CodeSniffer https://unibeautify.com/docs/beautifier-php_codesniffer.html
9 Prettier https://unibeautify.com/docs/beautifier-prettier.html
10 Pretty Diff https://unibeautify.com/docs/beautifier-pretty-diff.html
11 TSLint https://unibeautify.com/docs/beautifier-tslint.html
12 YAPF https://unibeautify.com/docs/beautifier-yapf.html
13 sqlformat https://unibeautify.com/docs/beautifier-sqlformat.html
14 stylelint https://unibeautify.com/docs/beautifier-stylelint.html

🎨 Usage

🔧 Configure

Important: You must first configure for the extension to work properly.

Use the Unibeautify Assistant for an interactive setup of your configuration file. Simply select the languages you want and the configuration assistant will walk you though the options available. At the end, simply download or copy to your clipboard your configuration.

📝 Example Configuration File

See https://unibeautify.com/docs/config-file.html for details.

Given the following scenario:

Create a .unibeautifyrc.yml file in your project's root directory with the following contents:

---
JavaScript: # Enable language
  beautifiers: ["Prettier"] # Enable beautifiers
  indent_style: "space"
  indent_size: 2

Then look at https://unibeautify.com/docs/beautifier-prettier.html and https://unibeautify.com/docs/options-for-languages.html for more supported options.

📌 Default configuration

We provide the option to set a path to a default configuration file, so whenever a project of yours has no, e.g. .unibeautifyrc.yml, the default configuration will be used as a fallback.

To enable this, just add this to your VSCode settings:

"unibeautify.defaultConfig": "/path/to/your/.unibeautifyrc.yml",

⚡️ Keyboard Shortcut

From Stack Overflow:

  • Windows: Shift + Alt + F
  • Mac: Shift + Option + F
  • Ubuntu: Ctrl + Shift + I

🎹 Command Palette

Open the Command Palette (Ctrl +Shift+ P or Command + Shift + P on Mac) and search for format:

format

  • Format Document - Formats the entire editor document.
  • Format Selection - Formats only the selection. Only appears when text selected.

❓ FAQ

How do I add language support for a non-standard file extension?

This section is for you if you are seeing the following error message after running Format Document or similar:

There is no document formatter for 'plaintext'-files installed.

See https://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language for VSCode documentation on file.associations setting. For example, the .vscode/settings.json below adds the .myphp file extension to the php language identifier:

{
  "files.associations": {
    "*.myphp": "php"
  }
}
Before After
before after
How do I disable a supported language?

By default all languages supported by Unibeautify will be enabled.

You can disable a specific language by setting the language options to false as shown below.

Important: You must restart/reload VSCode after enabling/disabling a language.

Example .unibeautifyrc.yml:

---
CSS: false # Disable CSS!
JavaScript: # Enable TypeScript
  beautifiers: ["Prettier"] # Enable beautifiers
  indent_style: "space"
  indent_size: 2
Before After
Beautified CSS files There is no document formatter for 'css'-files installed.
What can I do when a beautifier takes to much time formatting?

This section is for you if you are seeing the following error message in the developer console after running Format Document or similar:

Timeout message

Sometimes beautifiers are taking much time formatting your file, this can be caused by big files or many settings you have set for your beautifier, then you need to increase the VSCode editor.formatOnSaveTimeout option to give the beautifier more time formatting your file.

Just add this entry in your VSCode settings:

"editor.formatOnSaveTimeout": 2000

The time is set in milliseconds, in the example above 2000 is equal to 2 seconds

Contributing

See CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].