Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-auto-add-trycatchNew to Visual Studio Code? Get it now.
vscode-auto-add-trycatch

vscode-auto-add-trycatch

NinJa427

|
143 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

auto add try catch

Usage

  1. Through the Command Palette.
  • Try Catch
  1. Through the shortcut
  • mac "cmd + o + o"
  • win "ctrl + o + o"
async function getValue() {
  const a = await p();
};
async function getValue() {
   try {
     const a = await p();
   }catch(e){
    console.log(e)
   }
};

trycatch

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft