Skip to content

Fatin007/lazy-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy CPP

Welcome to the Lazy_CPP Extension for Visual Studio Code! This extension provides a collection of useful C++ code snippets to improve your coding productivity. This might be useful for lazy people like me!!

Features

  • Handy Snippets: Get quick access to commonly used C++ code snippets within Visual Studio Code.
  • Boost Productivity: Streamline your C++ coding workflow by reducing repetitive tasks.

Installation

  1. Launch Visual Studio Code.
  2. Go to the Extensions view (Ctrl+Shift+X).
  3. Search for "lazy cpp".
  4. Click Install to install the extension.

Usage

  1. Open a .cpp file in Visual Studio Code.
  2. Type the snippet prefix defined in the extension's snippets.
  3. Select the desired snippet from the IntelliSense dropdown or press Tab or press Enter to insert it.

Snippets list

Serial No. Snippet Name Prefix
1 Simple Boilerplate /simple
2 Basic snippet without testcase /cpw
3 Basic snippet with testcase /cpt
4 for loop (press tab to go next) /for
5 Reverse for loop /forr
6 while(){} /forr
7 cin>>x (change x); /cin
8 Declare and input n /n
9 Declare and input 1 variable /in1
10 Declare and input 2 variable /in2
11 Declare and input 3 variable /in3
12 New line /nl
13 cout 1 with space /outs
14 cout 1 variable /out1
15 cout 2 variable /out2
16 n size vector declare and input /vn
17 vector (change data type and name) /vector
18 pair /pair
19 map (change data type and name) /map
20 set (change data type and name) /set
21 if(){} /if
22 else if(){} /elif
23 else{} /else
24 singly linked list node /singly
25 doubly linked list node /doubly
26 tree node /tree
27 .begin() .be
28 .end() .end
29 v.begin(),v.end() /all
30 .push_back(x); .pb
31 .pop_back(); .pop
32 .size() .sz
33 .first .fi
34 .second .se
35 .insert(x); .in
36 sort vector /sort
37 sort vector (descending) /sorttt
38 class name(){}; /class

Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published