Giter VIP home page Giter VIP logo

vscode-data-converter's Introduction

vscode-data-converter

Screenshot

Download here.

Data Converter is a VSCode extension that allows you to quickly convert sections of data from one form to another. It can be used to assist in debugging error logs or any other number-heavy process.

Usage

Select text and press Alt+D to bring up the options menu.

Features

  • Decimal, Hex, and Binary conversions of individual numbers and whole documents.
  • URL Escaping/Unescaping.
  • Unicode Encoding/Decoding.

Configuration Options

  • converter.prependDataWithIdentifier: Add 0x and 0b in front of hex and binary numbers when converted.
  • converter.treatSpacesAsDelimiter: Spaces indicate a new number.
  • converter.padToLength: The amount of digits to pad converted numbers to.

vscode-data-converter's People

Contributors

edipsbeef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-data-converter's Issues

plz add data format supportting, thx

hi this ext is very usful, and it will be better for add format support,
for example:
I want to convert dec-hex;
10-->0xA
350--0x15E
I want this ext can provide the option that we can specify the "Length", like:
10--->0x00A
350-->0X15E
so that I can align my code easier. thx

Bug: Incorrect Hex to Binary conversions beyond 6 bytes

Conversions of all Hex characters fail after the first 6 bytes, and are left as all zeros.

Conversion of the following selections:

f1
f1f1
f1f1f1
f1f1f1f1
f1f1f1f1f1
f1f1f1f1f1f1
f1f1f1f1f1f1f1
f1f1f1f1f1f1f1f1
f1f1f1f1f1f1f1f1f1
f1f1f1f1f1f1f1f1f1f1

Gets converted to:

11110001
1111000111110001
111100011111000111110001
11110001111100011111000111110001
1111000111110001111100011111000111110001
111100011111000111110001111100011111000111110001
11110001111100011111000111110001111100011111000111110000
1111000111110001111100011111000111110001111100011111000000000000
111100011111000111110001111100011111000111110001111100000000000000000000
11110001111100011111000111110001111100011111000111110000000000000000000000000000

Feature Request: Add option to always pad conversions to hex and binary as full bytes

The existing options to either prompt or always pad to a certain length is nice for smaller conversions, but it is not practical for converting longer strings of Hex to Binary where the needed padding length is not easily determined.

For instance: Converting 01ffff0007f101 from Hex -> Binary. You would need to set the padding 56 to get full byte boundaries, which is not readily obvious. This also becomes impossible to use with the current tool when converting multiple selections to binary, each of different lengths.

I suggest adding the following option:

  • Converter: Always Use Full Bytes
    ☑️ Use full bytes when converting to Hex and Binary. This also changes the padding feature for conversions to Hex and Binary to apply to the total number of bytes instead of binary bits or hex characters.

I would also recommend turning that option on by default. I suspect most of your users probably expect this functionality.

You may also want to change the default "Pad to Length" to have separate options for each output type. That would make this feature more usable for me, but most of the time I would still probably leave it off and the variable length setting on.

BTW, I love the tool! I'm surprised there are not other tools similar to this.

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.