Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

129
Views
What do I press to autocomplete the "-------" in console.log() and add a duplicate line?

Starting at 2:15 in the below vscode tutorial video, he types "console.log(", then I am assuming he presses a button that autocomplete the entry to "console.log("------------------"); which duplicates below.

When I type "console.log(" no autocomplete options appear. Additionally, even if I duplicate his code manually as below:

console.log("-------------------");
console.log("Rise & Shine!");
console.log("Ready for a new day!");
console.log("-------------------");

And press F5, a new window pops open titled "[Extension Development Host] settings.json - Visual Studio Code and returns the following code:

{
    "workbench.colorTheme": "Default High Contrast",
    "workbench.startupEditor": "none",
    "files.autoSave": "afterDelay",
    "explorer.confirmDelete": false
}

https://www.youtube.com/watch?v=B-s71n0dHUk&t=200s

Extensions installed: JavaSCript (ES6) code snippets Javascript Debugger Code Runner json npm intellisense

8 months ago · Santiago Gelvez
1 answers
Answer question

0

You can press option+shift+downarrow to copy a line below (alt+shift+arrow on windows)

To launch with F5, you need node.js installed on your system, with the corresponding extension in vs code.

8 months ago · Santiago Gelvez Report
Answer question
Find remote jobs