DEV Community

Cover image for console.log() shortcut in VS code
Faisal Ahmed
Faisal Ahmed

Posted on • Edited on

10

console.log() shortcut in VS code

FIRST WAY

  • vs code open kore
  • ctrl + shift + p press korte hobe
  • snippets likhe search dite hobe
  • erpor j language e dorkar, oi language select kore, amader configure korte hobe.

Image description

Image description

Image description



{
    "Console.log": {
        "prefix": "clg",
        "body": "console.log($1);",
        "description": "Console Log"
    }
}


Enter fullscreen mode Exit fullscreen mode



ANOTHER WAY

  • first step:

Image description

  • second step (click the red mark like the image)

Image description

  • third step (write 11 to 18no. line of code)

Image description

  • code


// Place your key bindings in this file to override the defaultsauto[]
[
    {
        "key": "ctrl+r",
        "command": "code-runner.run"
    },
    {
        "key": "ctrl+alt+n",
        "command": "-code-runner.run"
    },
    {
        "key": "ctrl+shift+l",
        "command": "editor.action.insertSnippet",
        "when": "editorTextFocus",
        "args": {
            "snippet": "console.log(`${TM_SELECTED_TEXT}$1`$2);"
        }
    }
]


Enter fullscreen mode Exit fullscreen mode

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
abdraevaraisa profile image
Raisa Abdraeva

super, thank you

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay