Comments (8)
There is already an unopinionated code formatter called indent.js that can be accessed in the plus icon menu of the quick keyboard, but if you prefer to use prettier, I can add this as an alternative opinionated formatter that can be changed in the settings.
from spck-issues.
I already discovered this tool but it is a little but it is not working very good:
`function createBlocks (width, height){
for(var i = 0;i<Math.floor(fieldWidth/width);i++){
blocksArray.push([]);
for(var z = 0;z<Math.floor(fieldHeight/height);z++){
blocksArray[i].push({color: "#000000"});
}
}
}
function loadBlocks (width, height){
for(var i = 0;i<blocksArray.length;i++){
for(var z = 0;z<blocksArray[i].length;z++){
if(blocksArray[i][z].color){
ctx.fillStyle=blocksArray[i][z].color;
}
ctx.fillRect(i*width, z*height, width, height);
}
}
}
initCanvas();
createBlocks(blockWidth, blockHeight);
genApple();
loadBlocks(blockWidth, blockHeight);
//Game
function updateSnake (){`
For no reason it inserts spaces to the code.
from spck-issues.
I think nobody is actively developing indent.js(look at the dates)
from spck-issues.
Ok, I can switch it. I am the developer for indent.js and there has been no bug reports on the repo. Just wondering if prettier can be configured to not put each element of an array on a new line? I find it super annoying when code prettifiers add a whole bunch of new lines to my code, but maybe that’s just me...
from spck-issues.
Maby you just add an option to the settings to choice which prettifier to use.
from spck-issues.
prettest.zip
Here is an test script by me (edit code.txt and run script)
A great think I like of prettier is the semi: true
option Wich adds semicolons.
from spck-issues.
I looked into prettier and I’m shocked that the standalone bundle is over 30000 lines of code. Even when gzipped it still is a huge file, not to mention parsing through so much JavaScript will further slow down the editor load time. I’m going to switch to jsbeautifier, alternately I can refractor the formatter into a webworker, which hopefully shouldn’t bog down the editor start up time.
from spck-issues.
Ok... I'm really looking forward to it!
from spck-issues.
Related Issues (20)
- Usage issues, After running the code, The keyboard will not automatically focus HOT 2
- Git push
- Can't connect to GitHub HOT 3
- Updating Issue.
- Run button wont work for python plz help HOT 1
- MergeNoCommonAncestryError
- Korean translation problem HOT 1
- Import issue/input issues HOT 2
- cannot open app when there is no network HOT 4
- Python syntax support HOT 2
- External file doesn't opens up in app
- Image not add in image folder
- My Google accounts is still being deleted. HOT 1
- Deleted Html code HOT 2
- Built in browser preview is not working
- keyboard shortcuts HOT 1
- iOS 17 App crashes MEGAULTRABUG HOT 2
- Meu projeto HOT 1
- Add Option to Select NodeJS Version
- Not showing font awsome icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spck-issues.