All Projects → LaurentTreguier → vscode-uncrustify

LaurentTreguier / vscode-uncrustify

Licence: other
Code format using uncrustify

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to vscode-uncrustify

Better Comments
Stars: ✭ 420 (+577.42%)
Mutual labels:  formatting, vscode-extension
vscode-fortran-support
Fortran language support for Visual Studio Code
Stars: ✭ 49 (-20.97%)
Mutual labels:  formatting, vscode-extension
vscode-conventional-commits
💬Conventional Commits for VSCode.
Stars: ✭ 150 (+141.94%)
Mutual labels:  vscode-extension
vscode-twitch-themer
A Visual Studio Code extension that listens to Twitch chat and allows viewers to change the streamers VS Code theme.
Stars: ✭ 35 (-43.55%)
Mutual labels:  vscode-extension
sap-hana-driver-for-sqltools
A Visual Studio Code extension which extends the SQLTools extension, with a driver to work with the SAP HANA Database. It supports tables and views, as well as running queries on an SAP HANA Database.
Stars: ✭ 17 (-72.58%)
Mutual labels:  vscode-extension
vscode-console-helper
vscode console helper — 旨在帮助开发人员编码时更快的输入/移除 log,搭配上醒目的主题,提高开发效率。
Stars: ✭ 36 (-41.94%)
Mutual labels:  vscode-extension
MineDown
A MarkDown inspired markup library for Minecraft chat components
Stars: ✭ 128 (+106.45%)
Mutual labels:  formatting
code-compass
a contextual search engine for software packages built on import2vec embeddings (https://www.code-compass.com)
Stars: ✭ 33 (-46.77%)
Mutual labels:  vscode-extension
vscode-java-saber
⚔️ To make the vscode work as Eclipse or IDEA when you are coding in java.
Stars: ✭ 28 (-54.84%)
Mutual labels:  vscode-extension
vscode-cmake-tools-helper
VSCode extension that enables cpptools to automatically know the information parsed by CMake Tools (e.g. include directories and defines)
Stars: ✭ 16 (-74.19%)
Mutual labels:  vscode-extension
z-reader
📘 [vscode插件] 小说阅读器,支持在线搜索和本地阅读,支持txt和epub格式
Stars: ✭ 205 (+230.65%)
Mutual labels:  vscode-extension
Prestyler
Elegant text formatting tool in Swift 🔥
Stars: ✭ 36 (-41.94%)
Mutual labels:  formatting
vscode-micromamba
A VSCode extension to generate development environments using micromamba and conda-forge package repository
Stars: ✭ 16 (-74.19%)
Mutual labels:  vscode-extension
karate-runner
VSCode Extension for Karate
Stars: ✭ 23 (-62.9%)
Mutual labels:  vscode-extension
openedge-zext
OpenEdge ABL Extension for VSCode
Stars: ✭ 16 (-74.19%)
Mutual labels:  vscode-extension
vscode-theme
A modern, good-looking, productivity-increaser theme for Visual Studio Code
Stars: ✭ 46 (-25.81%)
Mutual labels:  vscode-extension
vscode-xwind
vscode extension for xwind
Stars: ✭ 16 (-74.19%)
Mutual labels:  vscode-extension
rouge-theme
VSCode theme created for a dark, material feel with a flushed color palette
Stars: ✭ 36 (-41.94%)
Mutual labels:  vscode-extension
vscode-ansible-vault
VSCode plugin for encrypt/decrypt with ansible-vault
Stars: ✭ 22 (-64.52%)
Mutual labels:  vscode-extension
vscode-monorepo-workspace
📦✨Manage monorepos with multi-root workspaces. Supports Lerna, Yarn, Pnpm, Rushjs and recursive package directories.
Stars: ✭ 93 (+50%)
Mutual labels:  vscode-extension

VSCode uncrustify

Features

Formats your code using uncrustify. Supported languages are :

  • C
  • C++
  • C#
  • D
  • Java
  • Objective-C
  • Pawn
  • Vala

Apex, while not officially supported by uncrustify, is also partially supported by the extension and will be formatted as if it was Java.

Installing uncrustify

  • Linux : Uncrustify is available in most distributions as a package in the official repositories (sudo apt/yum install uncrustify or equivalent)
  • macOS : Uncrustify is available through Homebrew (brew install uncrustify or see http://macappstore.org/uncrustify)
  • Windows : Prebuilt binaries are available on sourceforge. You will need to put the executable in your PATH variable and you will have to update it manually

If the executable is not in the PATH environment variable, you must set its path in the settings explicitly.

Uncrustify configuration

A default config file can automatically be created (see the commands below).

Starting with version 2.0.0, opening the configured config file (or a file named uncrustify.cfg at the root of your workspace if it's not configured) will display a graphical editor to easily tweak the configuration file.

configuration image

The graphical editor can be disabled in the extension settings. Uncrustify's default config file keeps its version at the top of the file; if that version differs from the version of the uncrustify executable then a button will be available to upgrade the config file to the newer version. New items will be marked as such when using the graphical editor.

configuration upgrade image configuration new items image

Extension commands

  • Uncrustify: Create default config file (uncrustify.create): Creates a default uncrustify.cfg file and puts it at the root of the current workspace.
  • Uncrustify: Open config file (uncrustify.open): Opens the configuration file that is currently set in the extension settings.

Extension settings

  • uncrustify.executablePath.[linux|osx|windows] (string): Path to the uncrustify executable if it's not already in the PATH environment variable.
  • uncrustify.configPath.[linux|osx|windows] (string): Path to the uncrustify configuration file. Environment variables can be used with either a Windows or a bash syntax (examples: %SOME_PATH%/dev/uncrustify.cfg, $SOME_PATH/dev/uncrustify.cfg). A relative path will be automatically prefixed with the current workspace path.
  • uncrustify.graphicalConfig (boolean): Toggles the graphical config editor when opening an uncrustify config file.
  • uncrustify.debug (boolean): Activates logs for debugging the extension. Logs should appear in the uncrustify output channel.
  • uncrustify.langOverrides (object): Overrides the language used by uncrustify.

Changelog

See CHANGELOG.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].