Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OCDetailerNew to Visual Studio Code? Get it now.
OCDetailer

OCDetailer

Saaasaab

|
332 installs
| (0) | Free
Organizes a selection of code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OCDetailer README

This is the README for the "OCDetailer" extension. OCDetailer will format a selection of code based on given delimiters.

Creating beautifully spaced code.

OCDetailer is language agnostic, works for every single programming language.

OCDetail Examples

To run the extension,

  1. Select the lines of code you want to format,
  2. Click on the extension
  3. A prompt will appear so you can enter the order of delimiters
  4. Hit enter and you'll be left with amazing code that's easy to read.

Note: You can use entire words as a delimiter. Wrap the word between two @ symbols. For example,

Features

Example 1: Routes

Type in the following to line up the code to the first ','

ENTER: ' , ' (without the quotation marks)

Routes pre OCDetail

To this:

Routes post OCDetail

Example 2: States

or even better, type in

ENTER: ' ,]= ' : to line up the code at the comma, then close square bracket, then equal sign.

States pre OCDetail

To this: States post OCDetail

Example 3: Imports

type in @from@ to use 'from' as the delimiter. You can use any string as a delimiter as long as you place the string between the @ signs.

@from@

Imports pre OCDetail

To this: Imports post OCDetail

Example 4: Variables

ENTER: ' = '

Variables pre OCDetail

To this: Variables post OCDetail

Example 5: Objects

ENTER: ' :, '

Variables pre OCDetail

To this: Variables post OCDetail

Example 6: Arrays

ENTER: ' ,,,] '

Variables pre OCDetail

To this: Variables post OCDetail

Known Issues

  • You can't use @ as a delimiter because it is the special character reserved for word delimiters
  • If you are using a list that has commas at the end, make sure the last element has a comma. Otherwise the sort fuction will place the rows out of place.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft