Relative Content

Tag Archive for angularvisual-studio-code

Angular is refreshing page on code changing

On vscode any angular code changing triggers a page refresh which reset all states from my current route getting it so frustating to develop over. I’d like to change the app without reloading entire page like vite on react

How to Open a downloaded File in Vscode from an Angular app

I’m working on an Angular app that can at some point contact an API to download a file. The download feature works fine, no problem with that. I use it to download a Python file.
The problem comes when I want the user to have the possibility to directly open the file in Vscode (if installed).
I know that you can open vscode from URL with the method described here (https://code.visualstudio.com/docs/editor/command-line#:~:text=Opening%20VS%20Code%20with%20URLs,-You%20can%20also&text=You%20can%20use%20the%20URL,%7Bfull%20path%20to%20file%7D%20.) :