Giter Site home page Giter Site logo

ahsanulhoqueabir / oopcpp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 47 KB

Enhance your C++ coding experience with these handy Visual Studio Code snippets. Whether you're a beginner or competitive programmer, these snippets will save you time and make your code more efficient.

Home Page: https://marketplace.visualstudio.com/items?itemName=MDAHSANULHOQUEABIR.oopcpcpp

code-snippet competitive-programming cpp extention

oopcpp's Introduction

OOP with CPP

Welcome to the CP OOP C++ Snippet Snippets extension! This extension provides a collection of helpful snippets for quickly typing C++ code during competitive programming contests.

Installation

To install this extension, follow these steps:

  • Open Visual Studio Code
  • Open the Extensions view by pressing Ctrl+Shift+X (Windows, Linux) or Cmd+Shift+X (macOS)
  • Search for CP OOP C++ Snippet
  • Click the Install button
  • Once the extension is installed, you're ready to start using it!

Usage

This extension provides a set of code snippets that can be inserted into your source files in Visual Studio Code. To use them, simply type part of the snippet name and press Enter to see a list of possible matches. The suggestions will then filter down based on what you type. You can also use the autocomplete feature if enabled. When a match is selected, the snippet will be inserted at the cursor with any placeholders replaced by appropriate text. If a placeholder contains a colon (e.g., ${1:x}), then the placeholder will become editable after insertion.

Once the editor has been closed and reopened, modifications to the file will not be saved back to the buffer - the edits were never there to begin with. This allows you to experiment with snippets without worrying about leaving traces.

Snipped List

Description Prefix
Basic BoilerPlate for CPP /basicCPP
CP boiler plate without testcase /cp
CP boiler plate taking testcase /cptestcase
long long Int /ll
long double /ld
input one any type of variable which are declared /in1
input two any type of variable which are declared /in2
input three any type of variable which are declared /in3
input four any type of variable which are declared /in4
Declare and Input one integer variable /inn1
Declare and Input two integer variable /inn2
Declare and Input three integer variable /inn3
Declare and Input one string variable /sin1
Declare and Input two string variable /sin2
Declare and Input three string variable /sin3
String Reverse /revS
Declare and Input one long long int variable /llin1
Declare and Input two long long int variable /llin2
Declare and Input three long long int variable /llin3
Declare and Input one long double variable /ldin1
Declare and Input two long double variable /ldin2
Declare and Input three long double variable /ldin3
Declare and Input one float variable /fin1
Declare and Input two float variable /fin2
Declare and Input three float variable /fin3
Declare and Input one double variable /din1
Declare and Input two double variable /din2
Declare and Input three double variable /din3
Declare and Input one char variable /cin1
Declare and Input two char variable /cin2
Declare and Input three char variable /cin3
Declare and Input one bool variable /bin1
Declare and Input two bool variable /bin2
Declare and Input three bool variable /bin3
Declare and Input one vector variable /vin1
Declare and Input two vector variable /vin2
Declare and Input three vector variable /vin3
all vector element /allV
Ascending Order Sort of Vector /sortVector, /ascV
Descending Order Sort of Vector /sortVectorD, /dscV
Reverse of Vector /revV
Declare and Input one pair variable /pin1
Declare and Input two pair variable /pin2
Declare and Input three pair variable /pin3
Vector of Pair /vp
Declare and Input one map variable /mapin1
Declare and Input two map variable /mapin2
Declare and Input three map variable /mapin3
Declare and Input one set variable /setin1
Declare and Input two set variable /setin2
Declare and Input three set variable /setin3
Singly Linked List Node /singly
Doubly Linked List Node /doubly
Binary Search Tree Node /bst
Graph Node /graph
Queue /queue
Stack /stack
Priority Queue /pq
Output one variable in one line /outn
Output two variable in one line /out2
Output three variable in one line /out3
Output one variable in one line with space /outs
Output two variable in one line with space /outs2
Output three variable in one line with space /outs3
Print YES /py, /pys
Print NO /pn, /pyn
Print New Line /nl, /newline
Print Space /sp, /space
Print Tab /tab
Find integer Length /lenInt
For loop /loopFor
While loop /loopWhile
Do While loop /loopDoWhile
If else /ifElse
else if /elseif
else /else
Switch /switch

Feedback and Support

If you have any feedback or issues with this extension, please feel free to submit an issue on the extension's GitHub repository: Submit Issues

oopcpp's People

Contributors

ahsanulhoqueabir avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.