• Stars
    star
    117
  • Rank 292,392 (Top 6 %)
  • Language
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VS Code Setting (Live input output) to make competitive programming easy and program analysis !

Make Coding Easy

This tutorial is for linux (debian based) only
If you are a windows user then check this out Setup VS Code for windows

1. VS code task config to make competitive programming easy and programme analysis !

This is a .json file which will help you to run your cpp file with one click or shortcut.

In this case , you don't need to write input in the command line or write fopen / close stuffs , programme will take input from a file (input.txt) automatically and give the output in another file (output.txt). Input Output

You can also find the programme runtime status which will help you to calculate execution time as well as memory usage and many more ! Time Status

pre-requirements :

  • Visual Studio Code
  • gcc/g++
  • time
    • install time : sudo apt install time

Let's setup

Note : You just need to do these things only for the first time of your workspace!

  • Split screen in 3 sections

    • split the main section in right (right mouse click on the .cpp file and u will get the split options)
    • then split the right into down (same as above)

Split SS

  • create a file named input.txt and save it in the same folder
  • create a file named output.txt and save it in the same folder
  • open input.txt into the upper right section
  • open output.txt into the lower right section

This will be the final look of your vs code

VS Code Final Look

How to setup

  • Go to Configure Default Build Task...

    • In Menu bar

      • Click on Terminal (At the left top bar ) Top Bar
      • select configure task
      • select create task.json from template (this will create a task.json file in .vscode in your working directory)
      • select other and new task.json file will be created
      • now copy and paste the task.json { link is here } file into your task.json file
      • done

Usage

  • Run :
    • Shortcut type : ctrl+shift+b
  • You need to give the input in the input.txt file
  • output will be shown in the output.txt file

Note : Make sure your mouse cursor is clicked or focused on the cpp file editor while you are running your code.

Input Output

  • Bonus : programme status will be shown in the sys.txt file
  • People concern about more details such as binary form and disassemble code can check tasks(extra).json file Link

In the Repository i have also added config files for other Programming Languages too

Note : Here, I have merged all the files which includes tasks.json file for Python, C, C++, Java and Dart for both Windows and Linux! Here is the Link

2. VS CODE Snippet

This one is made for my personal usage, you can add functions as you wish and edit my name and doc.

  • Select User Snippets under File (at Left top bar) > Preferences (Code > Preferences on macOS), and then select cpp.json Top Bar
  • copy or replace the cpp.json file {Link} and save !

Usage

  • Creating a cpp file if you type inc and press Tab in your keyboard the snippet will load as i have set prefix as inc in my json file . (You can edit as your own !)
  • This will make programming easy and fast .

In the Repository i have also added config files for other Programming Languages too

Happy Coding with VS Code

More Repositories

1

Ubuntu-Launcher

An Android Launcher (having Ubuntu-Gnome flavour) build with Flutter
Dart
319
star
2

Crack-WIFI-WPA2

Get handshake and crack wpa/wpa2 security wifi passwords
C
90
star
3

cp-tool

cp-tool is an auto generator for solved problems at different online judges.
Python
37
star
4

Cleaner

A python script to clean unnecessary and caches in Debian based Linux OS
Python
20
star
5

Guideline-SwE-SUST

A guidline for Students of Software Engineering and Related Stubjects.
18
star
6

Little-Fun-Stuffs

Fun codes,scripts and programs i have written to do my personal stuffs
Python
16
star
7

Test-Hadoop

Setup hadoop in linux for big data analysis
Shell
13
star
8

CodeNerd

A online educational website
PHP
13
star
9

Visual-Codeforces

This is an Android Application based on Visualizing Codeforces(An online Judge)
Dart
11
star
10

Paper

Paper is an Online Exam Management System
JavaScript
10
star
11

MAC-Changer

A simple script to change mac address using python for linux
Python
10
star
12

Auto-Flutter

Auto Flutter is a python package to create structured base flutter projects.
Python
10
star
13

Machine-Learning-With-Python

Jupyter Notebook
9
star
14

Compititive-Programming

Problems solved from Codeforces and hackerRank in c/c++
C++
9
star
15

shifat.com

This is my personal portfolio
JavaScript
9
star
16

Android-Devlopment-Resources

Necessary apps ,softwares and tools for android rom developments
8
star
17

Linux_Necessary_Tutorials

Specially for ubuntu
8
star
18

jspw

8
star
19

BookMarks

8
star
20

NodeJS_MVC_with_Doc

**learning**
HTML
7
star
21

Mission-224

A game using JAVA OOP
Java
7
star
22

jspw.github.io

7
star
23

Network-Scanner

A simple script to scan the devices connected with the same network written in python 3 using scapy
Python
7
star
24

Calculator

A calculator With Graphical User Interface using Jframe GUI drag & drop in JAVA
Java
6
star
25

Windows

Batchfile
6
star
26

Basic_Python

Python
6
star
27

Algorithms-with-c-and-cpp

C++
6
star
28

simple-todo

A simple todo app to create | update | delete todo using ReactJs and Tailwindcss as css framework
JavaScript
6
star
29

Guardian-of-the-Galaxy

A 2d game using sfml in c++ for swe-150 course project
C++
6
star
30

ArduinoProgramming

LineFollowerRobotics
C++
6
star
31

Food-Menu

An android Application or A Food Menu List in Sylhet,BD Restaurents.
Python
6
star
32

cv

A simple cv in responsive web format
HTML
6
star
33

Assembly-Language-Programming-MIPS

Assembly
6
star
34

Easy-ClassRoom

This is our database project
5
star
35

JavaCalculator

a simple calculator that can do + - * / (for now) in Java Non GUI
Java
5
star
36

Flutter-Notebook

5
star
37

Learnig-React---The-Complete-Guide-incl-Hooks-React-Router-Redux

JavaScript
5
star
38

Sahitto-Kothon

A Web based platform for Writters(Literature).
Python
5
star
39

Django-Test

learing* Django 3.0
Python
5
star
40

Numerical-Analysis-Lab

MATLAB
5
star
41

SnakeGame

Snake game using graphics.h in c++
C++
5
star
42

Non-GUI-Programs-By-Python

Small programs without graphical user interface build in python using python buildin modules .
5
star
43

Learning-Flutter-with-Dart

Java
5
star
44

The-Weird-Javascript

I am trying to write about the things I feel weird about javascript (not saying bad :3)
JavaScript
5
star
45

Blog-Dev

A simple blog application for Software Engineering | Developers community.
JavaScript
4
star
46

OOP

SWE224 course assignments
Java
4
star
47

OS-Lab-Final

To whom it may concern
Java
4
star
48

Algorithm-Design-and-Analysis

2/2 Project
C++
4
star
49

git-101

4
star
50

Test-Android-Studio

Java
4
star
51

DarkSpoilerAlert-ChromeExtension

A Chrome Extension for Spoiler Alert of Dark ( A Netflix Si-Fi Web Series)
JavaScript
4
star
52

DataStructureProjects-Rafi_Sir-

Course : SWE-125 1/2 (DataStructure ) by Rafi_Sir
C++
4
star
53

Food-Delivery-App

Dart
3
star
54

Breaking-Bad-Info

An Android application where you can get imformations about your favourite characters and episodes of Breadking Bad.
Dart
3
star
55

DriveIO

DriveIO is a client-server file transfer application (GUI) which was an assignment in course CSE323.
Java
3
star
56

100-Days-Of-Coding

my 100 days of coding.
C++
3
star
57

DE-Commerce

Dynamic E-Commerce is an e commerce web application where user ...
JavaScript
2
star
58

routine-api

springboot best practices
Java
2
star
59

cp-tool-sample

2
star
60

Dynamic-Ecommerce-With-Redux

An E-Commerce Frontend
JavaScript
2
star
61

Necessary-Scripts

Shell
2
star
62

Auto-Flutter-Sample

This is a sample flutter project created by auto-flutter
CMake
2
star
63

MeOne-Doctor-Patient-Version

HTML
1
star
64

CRUD-Testing-by-Spring-MVC

Java
1
star
65

HackTheVerse_SUST_Tetrahedron

HTML
1
star
66

Learning-Jersey-JAX-RS-

HTML
1
star
67

bloc-Library-Doc-Pdf

1
star
68

How-To-React

Learn React Easily
1
star
69

SWE_428_Machine_Learning_Lab

SWE 428 course assignmets
Jupyter Notebook
1
star
70

SWE_423_Computer_Graphics_And_Image_Processing

C++
1
star
71

Resume-Parser

Python
1
star
72

React--Programming-Challenge-By-Wednesday-Solutions

JavaScript
1
star
73

blockchain-journey

Python
1
star
74

Bugs-In-My-Life

Dockerfile
1
star