{"id":20557602,"url":"https://github.com/vishal2376/cp-setup","last_synced_at":"2026-04-22T09:31:28.354Z","repository":{"id":43317809,"uuid":"364604444","full_name":"vishal2376/cp-setup","owner":"vishal2376","description":"Sublime text setup for competitive programming(c++) in Linux","archived":false,"fork":false,"pushed_at":"2022-03-08T17:31:54.000Z","size":392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T06:48:45.722Z","etag":null,"topics":["competitive-programming","cpp","linux","setup","sublime-text-3"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vishal2376.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-05T14:28:51.000Z","updated_at":"2022-03-08T17:31:52.000Z","dependencies_parsed_at":"2022-09-06T17:31:01.165Z","dependency_job_id":null,"html_url":"https://github.com/vishal2376/cp-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vishal2376/cp-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal2376%2Fcp-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal2376%2Fcp-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal2376%2Fcp-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal2376%2Fcp-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vishal2376","download_url":"https://codeload.github.com/vishal2376/cp-setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal2376%2Fcp-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32129584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["competitive-programming","cpp","linux","setup","sublime-text-3"],"created_at":"2024-11-16T03:37:58.663Z","updated_at":"2026-04-22T09:31:28.334Z","avatar_url":"https://github.com/vishal2376.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sublime 3 setup for competetive programming in Linux\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/vishal2376/cp-setup/issues\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/vishal2376/cp-setup\"/\u003e \n  \u003c/a\u003e \n  \u003ca href=\"https://github.com/vishal2376/cp-setup/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/vishal2376/cp-setup\"/\u003e \n  \u003c/a\u003e\n    \u003ca href=\"https://github.com/vishal2376/cp-setup/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/vishal2376/cp-setup\"/\u003e \n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n\n## Installation :\n- Download [Sublime Text](https://www.sublimetext.com/docs/3/linux_repositories.html)\n- Install g++ compiler to run c++ files \n- Open Terminal and type \n\t```bash\n \tsudo apt-get install g++\n\t```\n\n## Setup Layout :\n- You can use either **3 Columns Layout** or **4 Columns Layout** . \n\t- For **3 Columns Layout** Press `Shift+Alt+3`\n\t- For **4 Columns Layout** Press `Shift+Alt+4`\n- Click on `View \u003e Groups \u003e Max Columns: 2`\n- Now create files `main.cpp` ,`input.txt` ,`output.txt` ,`error.txt` and drag/open in layout windows.\n\n\u003cimg src=\"screenshots/layout_3.png\" alt=\"3C Layout\" width=\"auto\"\u003e\n\u003cimg src=\"screenshots/layout_4.png\" alt=\"4C Layout\" width=\"auto\"\u003e\n\n## Build Settings :\n\n- Goto `Tools \u003e Build system \u003e New Build System`\n- Copy and paste it in the file\n  ```json\n  {\n  \"cmd\" : [\"g++ -std=c++14 $file_name -o $file_base_name \u0026\u0026 timeout 4s ./$file_base_name\u003cinput.txt\u003eoutput.txt\"], \n  \"selector\" : \"source.cpp\",\n  \"shell\": true,\n  \"working_dir\" : \"$file_path\"\n  }\n  ```\n\u003e **NOTE** : You can change c++ version by using `c++11` or `c++17` instead of `c++14`.\n\n- Now save file as **c++14.sublime-build**\n- Goto `tools \u003e build system` and click on **c++14** (same as above file name)  \n\n## Precompile Headers:\n- Compile **bits/stdc++.h** header file faster than before.\n- Goto the folder location \n  - `/usr/include/i386-linux-gnu/c++/10/bits`  (32-bit)\n  - `/usr/include/x64-linux-gnu/c++/10/bits`   (64-bit)\n\u003e **NOTE** : version(here 10) may be different in your PC\n\n- Now open **Terminal** with path(folder location) and type the command\n  ```bash\n  sudo g++ -std=c++14 stdc++.h\n  ```\n\u003e **NOTE** : Remember C++ version should be same as build settings.  \n\n## Snippets :\n\n- Snippets are used to make coding easier.\n- Goto `Preferences \u003e Browse Packages ` and open folder `User`\n- Then just copy and paste `base-code.sublime-snippet` file.\n\n### How to use snippets\n- Just type **code** and press `TAB`\n\u003cimg src=\"screenshots/snippets.png\" alt=\"snippets\" width=\"auto\"\u003e \n\n## Bonus :\n\nSno. | Package Name | Short Description\n---|---|---\n1 | Sublime AStyle Formatter | Make code beautiful\n2 | Easy Clang Complete | Autocomplete code\n3 | Side Bar Enhacements | Make sidebar better\n4 | Seti | Theme\n5 | Bracket Color Scheme | Color Scheme\n\n\n## Credits :\n- Template credit : [Priyansh Agarwal](https://github.com/priyansh19077) \n\n## More projects : \n   \n  - [Virtual Assistant](https://github.com/vishal2376/virtual-assistant)\n  - [Website Designs](https://github.com/vishal2376/Website-Design)\n  - [Password Generator](https://github.com/vishal2376/password-generator) \n  \n## Contact Us:  \n  - [Instagram](https://www.instagram.com/vishal_2376/)\n  - [Telegram](https://t.me/vishal2376/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishal2376%2Fcp-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishal2376%2Fcp-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishal2376%2Fcp-setup/lists"}