millenniumambiguity / processing-formatter Goto Github PK
View Code? Open in Web Editor NEWvs code processing formatter
License: MIT License
vs code processing formatter
License: MIT License
Describe the bug
When you format the indentation of switch-case statements will be lost
To Reproduce
Expected behavior
The users indentation should be kept, or better, the switch case should be recognized and the formatting should act accordingly.
Additional context
I'm using spaces, if that matters.
Describe the bug
Writing a code in Processing IDE, i go to VSC to reformat it and found a wrong result.
In use:
Visual Studio Code 1.52.1.
Windows 10
Screenshots
Source code (part) was :
And after formatting :
You can see the wrong floatxNew and floatyNew .
Additional context
Could be some stuff with spaces and tabs ?
A try a better sample with several beginnings:
In notepad++ to see spaces:
One line is ok, the other nok :
HTH
Hey! I like this alot and I'm very happy that I found this extension. It is almost identical to processing IDE's default formatting but one issue that I found is that the formatter also formats inside strings which sometimes causes errorrs with font & image loading.
A fix for that would be very nice!
I think it will be a good idea to auto-add missing semicolons at end of line during format. It's quite a common issue to miss out on semicolons...
Is your feature request related to a problem? Please describe.
Missing semi-colons causing processing to terminate.
Describe the solution you'd like
Auto-add semicolons at end of line during format.
Describe alternatives you've considered
N/A
Additional context
N/A
I will be interested to help out with this feature if you can give me some pointers on how it could be implemented on this ext!
Describe the bug
For negative numbers, the extension seems to insert a space between the number and the sign (if the insert spaces option is turned on or off doesn't seem to make a difference here; though I don't think this is desirable behavior either way) and then proceeds to insert and remove a space left or the negative sign with each formatting run.
To Reproduce
-15
- 15
- 15
Expected behavior
For the screenshot I've shared, the expected formatting would in my opinion be:
········triangle(-10, 10, 0, -20, 10, 10);
Settings and Version information
Additional context
Thanks for smashing that other bug yesterday so quickly <3
Description
The formatter seems to force indentation using tabs. When formatting a pde file that uses spaces for indentation the formatter will replace the indentations to use tabs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The formatter should honour the current indentaion mode of the current file -> Tabs or Spaces (and the spaces count).
Version information
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.