How to create snippets in Sublime Text Last Updated : 22 Mar, 2021 Comments Improve Suggest changes Like Article Like Report In this article, we will discuss how to create snippets in Sublime text for Competitive Programming. In Competitive Programming, time is the most important key, and snippets give us functionality to not write the same code again and again and increase our performance in live contests. To install Sublime Text, refer to this article. Steps to make snippets in Sublime Text: Open Sublime Text: Go to Tools: Go to the Tools option and click on it. Go to Developer Option: Go to the developer option and click on New Snippet. A file will be open with some pre-written code.Edit file: A file will open after clicking on New Snippet. Now, remove the comments as shown below from this opened file. Add Code: Now, remove some pre-written code and write your own code in that.For Example, You can write any code in the above window. Below is the illustration of that:Set TabTrigger: It shows the keyword that anyone wants to use for this code. When that keyword triggered, the default code which is changed in the above steps will present there. So, First remove that pre-written keyword:Write a keyword that you want to use for this code. In my case keyword is gcd():Set Scope: Now, to set the scope, i.e., to use this snippet in which language. To set scope, first remove pre-written scope:Write the scope in which anyone wants to use this snippet. In the below case, the scope is C++:Save Snippet: Now, save the snippet with the extension. sublime-snippet:The snippet is ready to be used.Now open the file and type your keyword for the snippet. In my case, it is gcd(), So just write gcd and hit enter:And our code is present here: Comment More infoAdvertise with us Next Article How to create snippets in Sublime Text N nikhilchhipa9 Follow Improve Article Tags : Competitive Programming C++ Write From Home How To DSA +1 More Practice Tags : CPP Similar Reads How to Install Sublime Text 3 in Windows? Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can customize this editor as per your need to create a full-fledged Python development environment. You can install packages such as d 2 min read How to Setup Sublime Text 3 for Perl in Windows? Perl is a general-purpose, high level interpreted and dynamic programming language. Perl was originally developed for text processing like extracting the required information from a specified text file and for converting the text file into a different form. Perl programs can be written on any plain 2 min read How to Setup Sublime Text 3 for Java in Windows? Java is one of the most popular and widely-used object-oriented programming languages. Java syntax is similar to C/C++. But Java does not provide low-level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects. The Java codes are first comp 2 min read How to Setup Sublime Text 3 for Python in Windows? Written by a Google engineer sublime text is a cross-platform IDE developed in C++ and Python. It has basic built-in support for Python. Sublime text is fast and you can customize this editor as per your need to create a full-fledged Python development environment. You can install packages such as d 2 min read How to Use Terminal in Sublime Text Editor ? Well in Visual Studio Code we get a direct Option for opening Terminal, Unlike Sublime Text editor. Sublime is Simple and free to use, Light on memory, and can easily work with multiple projects. In this article, we will see how to use Terminal in a Sublime Text Editor. This article will answer all 3 min read Like