London | 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | coursework/sprint-2#1099
London | 26-ITP-Jan | Ebrahim Moqbel | Sprint 2 | coursework/sprint-2#1099Ebrahim-Moqbel wants to merge 9 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
Code is not consistently formatted.
Consider install prettier VSCode extension and enable formatting on save/paste on VSCode
as recommended in
https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/blob/main/readme.md
Then, resave all your files (in Sprint 2) to ensure all code is consistently formatted.
|
I have installed prettier to VS code and selected the copy-paste save format. I have been reading about reverting and reseting commits in git. I know how to. revert a specific commit but I still need to know how can I select all the commits. I was wondering if you need me revert all of them and commit them again. Also After installing prettier I still find the format the same and I think it's consistent. |
|
If you have enabled "Format on save" but it is not working, it is likely that you haven't assign a formatter for JS file. This could happen if you have zero or multiple extensions that can format .js file. If you have installed "Prettier" extension. To assign it as the formatter of JS code, you can try: Can you also address all the follow-up questions in the inline comments. |
|
I don't see any video. I only see an image. Prettier won't format the code if there is a syntax error in the code. The file If you still have problem setting Prettier as your default formatter, try to seek for assistance on Saturday in the workshop? Thanks for the responses to each comment. All good now. |

Learners, PR Template
Self checklist
Changelist
I completed the following filles :