Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Info TemplateNew to Visual Studio Code? Get it now.

Info Template

pjayakrishnan

|
23 installs
| (0) | Free
Insert File Information, Method Information and many more templates with ease.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

info-template README


Add various information templates with ease in VSCode by installing Info Template extension..

Features


You can insert various information templates just by typing the prefix and Tab when working in C++ and C#.

C++ Snippets

Prefix What you get
!fit File Information Template
!mit Method Information Template
!cpp_boilerplate Cpp Hellow world Boilerplate
!read_array Read array from console in C++
!print_array Print array to console in C++

C# Snippets

Prefix What you get
!fit File Information Template
!mit Method Information Template
!csharp_boilerplate Csharp Hellow world Boilerplate
!read_array Read array from console in C#
!print_array Print array to console in C#

File Information Template
//*****************************************************
// File Name    :
// Author       :
// Last Updated :
//*****************************************************
Method Information Template
//*****************************************************
// Method name :
// Return type :
// Parameters  :
// Note        :
//*****************************************************
Cpp Hellow world Boilerplate
#include<iostream.h>

int main()
{
    std::cout << "Hello world!!";
    return 0;
}
CSharp Hellow world Boilerplate
namespace HelloWorld
{
    class Hello 
    {         
        static void Main(string[] args)
        {
            System.Console.WriteLine("Hello World!");
        }
    }
}
Read array from console in C++
for(int i = 0 ; i < size ; i++)
{
    std::cin >> array[i];
}
Read array from console in C#
for(int i = 0 ; i < size ; i++)
{
    arr[i] = Convert.ToInt32(Console.ReadLine());
}
Print array to console in C++
for(int i = 0 ; i < ${1:size} ; i++) { std::cout << array[i]; }
Print array to console in C#
foreach(var item in myArray) { Console.WriteLine(item.ToString()); }

1.0.5

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft