Videos
I've only been learning to code for a few days. I'm writing HTML in Notepad++ and I'm trying to view the file in Chrome. I clicked 'view', then 'view current file in', then Chrome but it only shows raw code. What am I doing wrong?
There are 2 ways for opening .html files in Google chrome.
Way 1 :
Right click on the .html file and select open with Google chrome.
Way 2 :
- Open Google Chrome
- Press ctrl + o
- A window opens
- Navigate to your destination folder and click on your .html file
That's it. There you go.
Hope This is helpful.
Just paste the path of the html file including the .html to the browser. Eg, c://Desktop/user/project/file.html -> paste on url
if by html documents you mean web pages, then you can install a pdf print driver in xp and print those documents as pdf's. you can bing for free pdf printers.
if you have microsoft office word installed, then you likely have two additional methods already installed.
under the file menu option in your i.e. browser, you should be able to select "edit with word" or select print preview, then print the webpage to the microsoft xps document printer.
OK, I believe that I installed the PDF printer, but now what are the steps that I can use to convert the HTML web page(s) to a PDF?
For Windows - Open your Default Browser - Tested on VS Code v 1.1.0
Answer to both opening a specific file (name is hard-coded) OR opening ANY other file.
Steps:
Use ctrl + shift + p (or F1) to open the Command Palette.
Type in
Tasks: Configure Taskor on older versionsConfigure Task Runner. Selecting it will open the tasks.json file. Delete the script displayed and replace it by the following:{ "version": "0.1.0", "command": "explorer", "windows": { "command": "explorer.exe" }, "args": ["test.html"] }Remember to change the "args" section of the tasks.json file to the name of your file. This will always open that specific file when you hit F5.
You may also set the this to open whichever file you have open at the time by using
["${file}"]as the value for "args". Note that the$goes outside the{...}, so["{$file}"]is incorrect.Save the file.
Switch back to your html file (in this example it's "text.html"), and press ctrl + shift + b to view your page in your Web Browser.

VS Code has a Live Server Extension that supports one click launch from status bar.
Some of the features:
- One Click Launch from Status Bar
- Live Reload
- Support for Chrome Debugging Attachment
