Brain  Crist

Brain Crist

1595390400

How to Create a Snippet in Visual Studio Code

Here’s how you make a custom, global snippet in VSCode.

  • Press COMMAND + SHIFT + P to open the command palette.
  • Find “Preferences: Configure User Snippets”.
  • Click “New Global snippets file”. This will open up a file with a .code-snippets extension in ~/Library/Application Support/Code/User/snippets/filename.code-snippets.

I made one that will allow me to type perr + TAB to print forced PHP errors.

PHPErrors.code-snippets

{
	"Show PHP Errors": {
		"scope": "php",
		"prefix": "perr",
		"body": [
			"ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);"
		],
		"description": "Show PHP Errors"
	}
}

And that’s all.

#snippets #visual studio code #visual studio #java

What is GEEK

Buddha Community

How to Create a Snippet in Visual Studio Code
Brain  Crist

Brain Crist

1595390400

How to Create a Snippet in Visual Studio Code

Here’s how you make a custom, global snippet in VSCode.

  • Press COMMAND + SHIFT + P to open the command palette.
  • Find “Preferences: Configure User Snippets”.
  • Click “New Global snippets file”. This will open up a file with a .code-snippets extension in ~/Library/Application Support/Code/User/snippets/filename.code-snippets.

I made one that will allow me to type perr + TAB to print forced PHP errors.

PHPErrors.code-snippets

{
	"Show PHP Errors": {
		"scope": "php",
		"prefix": "perr",
		"body": [
			"ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);"
		],
		"description": "Show PHP Errors"
	}
}

And that’s all.

#snippets #visual studio code #visual studio #java

COMO USAR e trabalhar com Code Review no Visual Studio Code

Não é todo programador que gosta de compartilhar o seu trabalho ou até mesmo receber feedbacks de como o seu código foi escrito, mas o Code Review é cada vez mais comum em empresas do mundo todo.

Conheça uma extensão para Visual Studio Code e comece a trabalhar com Code Review em seu próximo projeto. Essa é a sua chance de saber COMO USAR e trabalhar com Code Review no Visual Studio Code.

#visual studio code #code review #visual studio #code

Brain  Crist

Brain Crist

1597032000

User Snippets (Code Shortcuts) in Visual Studio Code

Hello, my friends and fellow developers, this video is all about User Snippets. That means the Snippets (Code Shortcuts) that you can make for yourself. It is a really amazing feature. I hope you like this video

Let me know in the comments below if you want more Visual Studio Code videos or any other videos. And like the video, if you like it.

#visual studio code #visual studio #code

Brain  Crist

Brain Crist

1596975120

Writing Visual Studio Extensions with Mads - Episode 1: Item Templates

Join Mads Kristensen from the Visual Studio team each week as he builds extensions for Visual Studio live!

#visual studio code #visual studio #code #microsoft #visual studio extensions

Brain  Crist

Brain Crist

1597065180

Visual Studio Remote Office Hours - Being a Program Manager for .NET & Visual Studio

Join Mads Kristensen as he sits down with Kendra Havens, .NET & Visual Studio Program Manager, to discuss what a day in the life of being a PM is like.

#visual studio code #visual studio #microsoft #code