Do you format your code online(Any website)?

Photo by Chris Ried on Unsplash

Do you format your code online(Any website)?

If Yes, then you are doing it wrong!

ยท

1 min read

There are many websites available online which will surely help you to format your code. but have you thought that your code might be stolen or stored on their servers?

Sometimes we have some JSON data which might contain sensitive data, we just go to any website and format it. they might save your data on their server & might leak your sensitive information right?

So what to do? there are multiple ways to format your code.

  1. There are a few chrome extensions that are free to use and are trustworthy but these chrome extensions have limitations to only HTML, CSS, JavaScript & JSON file formats. If you are working on these file formats then go & install them. Save your time and protect your data from getting stolen. Here's one which I personally use & it's authentic and does not have ads as well. :) https://chrome.google.com/webstore/detail/code-formatter/njpgcnaadikbannefjibknjopmogeidm

  2. If you are using VS Code/Atom then you simply need to right-click anywhere on the document & select format document or press Ctrl + Shift +F on your keyboard.
    (If this doesn't work then on the right bottom there is an option to select language mode open it & choose your file type & format your document)

That's it for now. Happy coding. ๐Ÿป

ย