Reputation: 4898
How can I open/load a JS file directly from the web, as part of my project in Visual Studio?
This is a sample URL I got from a weather monitoring site:
https://static.eagle.io/85e2aa8e4322e59c8de35847502f1220684b7615/assets/app-public/asset.js
Opening it directly on the browser, just doesn't format the JS nicely (beautify). How can I load and beautify the asset.js
file in Visual Studio 2022 as part of the project please (not to use it, to view it)?
Thanks
Upvotes: 0
Views: 128
Reputation: 154
Looking at the code, asset.js
seems to be minified. Although you could technically format (beautify) the code, it'll still be unreadable. Nonetheless, you could save the file to your computer using CTRL + S, open it in Visual Studio, and use an extension such as Prettier to format the code.
Upvotes: 1