Skip to content

Commit fd8cf52

Browse files
authored
Merge pull request #1 from nv2k3/master
updated 🚀
2 parents c00e35b + d6ccacf commit fd8cf52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+794
-895
lines changed

Dockerfile

Lines changed: 86 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
FROM ubuntu:20.04
1+
FROM debian:10
22

3-
LABEL AboutImage "Ubuntu20.04_VS-Code-Server"
3+
LABEL AboutImage "debian:10_VS-Code-Server"
44

55
LABEL Maintainer "Apoorv Vyavahare <apoorvvyavahare@pm.me>"
66

7-
ARG DEBIAN_FRONTEND=noninteractive
87

98
#Code-Server Version
10-
ENV CS_VERSION=3.10.2 \
9+
ENV CS_VERSION=3.11.0 \
1110
#Code-Server login type: {password, none}
1211
AUTH_TYPE="password" \
1312
#Code-Server login password (If AUTH_TYPE=password)
@@ -23,85 +22,88 @@ ENV CS_VERSION=3.10.2 \
2322
#Ngrok Port Forwarder Token
2423
NGROK_TOKEN="1tLI5XxmWy9UHmolHDVvxmgOwvU_4qG9dbxDayGJSyuEiq3A1" \
2524
#System Path Variable
26-
PATH=$PATH":/usr/local/go/bin" \
25+
PATH=/usr/local/go/bin:/usr/local/cargo/bin:$PATH \
26+
RUSTUP_HOME=/usr/local/rustup \
27+
CARGO_HOME=/usr/local/cargo \
2728
#Timezone
2829
TZ="Asia/Kolkata" \
2930
#Locales
3031
LANG=en_US.UTF-8 \
3132
LANGUAGE=en_US.UTF-8 \
3233
LC_ALL=C.UTF-8
33-
RUN rm -rf /etc/apt/sources.list && \
34-
#All Official Focal Repos
35-
bash -c 'echo -e "deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse\ndeb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse\ndeb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse\ndeb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse\ndeb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse\ndeb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse\ndeb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\ndeb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse\ndeb http://archive.canonical.com/ubuntu focal partner\ndeb-src http://archive.canonical.com/ubuntu focal partner" >/etc/apt/sources.list' && \
36-
rm /bin/sh && ln -s /bin/bash /bin/sh && \
37-
apt-get update && \
38-
apt-get install -y \
39-
#Base Packages
34+
35+
RUN apt-get update \
36+
&& apt-get install -y \
37+
# Base Packages
4038
tzdata software-properties-common apt-transport-https wget git curl vim nano zip sudo net-tools xvfb php npm supervisor gnupg \
41-
#C, C++
39+
# C, C++
4240
build-essential \
43-
#C-Sharp
41+
# C-Sharp
4442
mono-complete \
45-
#Clojure
43+
# Clojure
4644
clojure \
47-
#Java
45+
# Java
4846
default-jre \
4947
default-jdk \
50-
#Lua
48+
# Lua
5149
lua5.3 \
52-
#Perl
50+
# Perl
5351
perl \
5452
perl6 \
55-
#Python
53+
# Python
5654
python3 \
5755
python3-pip \
58-
python-is-python3 \
59-
#R
56+
# R
6057
r-base \
61-
#Ruby
62-
ruby && \
63-
#Scala
64-
wget https://www.scala-lang.org/files/archive/scala-2.13.6.deb -P /tmp && \
65-
apt install -y /tmp/scala-2.13.6.deb && \
66-
#Yarn
67-
npm install --global yarn && \
68-
#Go
69-
bash -c 'echo "Installing Go..."' && \
70-
wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz -P /tmp && \
71-
tar -zxvf /tmp/go1.16.4.linux-amd64.tar.gz -C /tmp > /dev/null 2>&1 && \
72-
cp -r /tmp/go/ /usr/local && \
73-
bash -c 'echo "Go Installed!"' && \
74-
#Nodejs(LTS Release)
75-
bash -c 'echo "Installing Nodejs..."' && \
76-
wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz -P /tmp && \
77-
tar -xvf /tmp/node-v14.17.0-linux-x64.tar.xz -C /tmp > /dev/null 2>&1 && \
78-
cp -r /tmp/node-v14.17.0-linux-x64/* /usr && \
79-
bash -c 'echo "Installed Nodejs!"' && \
80-
#PowerShell
81-
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -P /tmp && \
82-
dpkg -i /tmp/packages-microsoft-prod.deb && \
83-
apt-get update && \
84-
apt-get install -y powershell && \
85-
#Swift
86-
bash -c 'echo "Installing Swift..."' && \
87-
wget https://swift.org/builds/swift-5.4.1-release/ubuntu2004/swift-5.4.1-RELEASE/swift-5.4.1-RELEASE-ubuntu20.04.tar.gz -P /tmp && \
88-
tar -zxvf /tmp/swift-5.4.1-RELEASE-ubuntu20.04.tar.gz -C /tmp > /dev/null 2>&1 && \
89-
cp -r /tmp/swift-5.4.1-RELEASE-ubuntu20.04/usr/* /usr && \
90-
bash -c 'echo "Swift Installed!"' && \
91-
#Brave
92-
curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg && \
93-
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|tee /etc/apt/sources.list.d/brave-browser-release.list && \
94-
apt update && \
95-
apt install brave-browser -y && \
96-
#Code-Server
97-
bash -c 'echo -e "Installing Code-Server..."' && \
98-
yarn --verbose --frozen-lockfile global add code-server@$CS_VERSION && \
99-
yarn cache clean && \
100-
bash -c 'echo -e "Code-Server Installed!"' && \
101-
#Code-Server Extensions
102-
wget https://github.com/microsoft/vscode-cpptools/releases/download/1.3.1/cpptools-linux.vsix -P /tmp && \
103-
code-server --install-extension /tmp/cpptools-linux.vsix --extensions-dir $CUSTOM_HOME/.extensions && \
104-
for codextension in \
58+
# Ruby
59+
ruby \
60+
# Scala
61+
&& wget https://www.scala-lang.org/files/archive/scala-2.13.6.deb -P /tmp \
62+
&& apt install -y /tmp/scala-2.13.6.deb \
63+
# Yarn
64+
&& npm install --global yarn \
65+
# Go
66+
&& bash -c 'echo "Installing Go..."' \
67+
&& wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz -P /tmp \
68+
&& tar -zxvf /tmp/go1.16.4.linux-amd64.tar.gz -C /tmp > /dev/null 2>&1 \
69+
&& cp -r /tmp/go/ /usr/local \
70+
&& bash -c 'echo "Go Installed!"' \
71+
# rust
72+
&& curl https://sh.rustup.rs -sSf | sh -s -- -y \
73+
&& sudo chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
74+
&& cargo --version \
75+
# Nodejs(LTS Release)
76+
&& bash -c 'echo "Installing Nodejs..."' \
77+
&& wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz -P /tmp \
78+
&& tar -xvf /tmp/node-v14.17.0-linux-x64.tar.xz -C /tmp > /dev/null 2>&1 \
79+
&& cp -r /tmp/node-v14.17.0-linux-x64/* /usr \
80+
&& bash -c 'echo "Installed Nodejs!"' \
81+
# PowerShell
82+
&& wget -q https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -P /tmp \
83+
&& apt install -y /tmp/packages-microsoft-prod.deb \
84+
&& apt-get update \
85+
&& apt-get install -y powershell \
86+
# Swift
87+
&& bash -c 'echo "Installing Swift..."' \
88+
&& wget https://swift.org/builds/swift-5.4.1-release/ubuntu2004/swift-5.4.1-RELEASE/swift-5.4.1-RELEASE-ubuntu20.04.tar.gz -P /tmp \
89+
&& tar -zxvf /tmp/swift-5.4.1-RELEASE-ubuntu20.04.tar.gz -C /tmp > /dev/null 2>&1 \
90+
&& cp -r /tmp/swift-5.4.1-RELEASE-ubuntu20.04/usr/* /usr \
91+
&& bash -c 'echo "Swift Installed!"' \
92+
# Brave
93+
&& curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg \
94+
&& echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|tee /etc/apt/sources.list.d/brave-browser-release.list \
95+
&& apt update \
96+
&& apt install brave-browser -y \
97+
# Code-Server
98+
&& bash -c 'echo -e "Installing Code-Server..."' \
99+
&& ARCH=$(dpkg --print-architecture) \
100+
&& wget -O /tmp/code-server.deb "https://github.com/cdr/code-server/releases/download/v${CS_VERSION}/code-server_${CS_VERSION}_${ARCH}.deb" \
101+
&& apt install -y /tmp/code-server.deb \
102+
&& bash -c 'echo -e "Code-Server Installed!"' \
103+
# Code-Server Extensions
104+
&& wget https://github.com/microsoft/vscode-cpptools/releases/download/1.3.1/cpptools-linux.vsix -P /tmp \
105+
&& code-server --install-extension /tmp/cpptools-linux.vsix --extensions-dir $CUSTOM_HOME/.extensions \
106+
&& for codextension in \
105107
pkief.material-icon-theme \
106108
akamud.vscode-theme-onedark \
107109
ms-python.python \
@@ -115,30 +117,29 @@ RUN rm -rf /etc/apt/sources.list && \
115117
ms-vscode.powershell \
116118
daltonjorge.scala \
117119
auchenberg.vscode-browser-preview \
118-
; do code-server --install-extension $codextension --extensions-dir $CUSTOM_HOME/.extensions; done && \
119-
#Jupyter Prerequisites
120-
pip install -U pylint ipykernel && \
121-
#Cleanup
122-
apt-get clean && \
123-
rm -rf \
120+
rust-lang.rust \
121+
; do code-server --install-extension $codextension --extensions-dir $CUSTOM_HOME/.extensions; done \
122+
# Jupyter Prerequisites
123+
&& pip3 install -U pylint ipykernel \
124+
# timezone
125+
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
126+
# Cleanup
127+
&& apt-get clean \
128+
&& rm -rf \
124129
/tmp/* \
125130
/var/lib/apt/lists/* \
126-
/var/tmp/* && \
127-
#TimeZone
128-
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
129-
130-
COPY container_files/home_files/ $CUSTOM_HOME/
131+
/var/tmp/*
131132

132-
COPY container_files/code-server /usr/local/share/.config/yarn/global/node_modules/code-server
133+
COPY container/home/ $CUSTOM_HOME/
133134

134-
COPY container_files/code-server_data/ $CUSTOM_HOME
135+
COPY container/code-server/User/ /usr/local/share/code-server/User/
136+
COPY container/code-server/pages/ /usr/lib/code-server/src/browser/pages/
137+
COPY container/code-server/media/ /usr/lib/code-server/src/browser/media/
135138

136-
RUN chmod -R ug+rwx $CUSTOM_HOME/ && \
137-
chmod -R ug+rwx /usr/local/share/.config/yarn/global/node_modules/code-server/ && \
138-
#Ngrok
139-
chmod +x $CUSTOM_HOME/.ngrok_install.sh && \
140-
bash -c '$CUSTOM_HOME/.ngrok_install.sh' && \
141-
#GoogleDrive Requirements
142-
pip install -r $CUSTOM_HOME/requirements.txt
139+
RUN chmod -R ug+rwx $CUSTOM_HOME/ \
140+
&& chmod -R ug+rwx /usr/local/share/code-server/User \
141+
# Ngrok
142+
&& chmod +x $CUSTOM_HOME/.ngrok_install.sh \
143+
&& bash -c '$CUSTOM_HOME/.ngrok_install.sh'
143144

144145
CMD supervisord -c $CUSTOM_HOME/.supervisord.conf

Dockerfile.heroku

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM vital987/code-server
22

3-
LABEL AboutImage "Ubuntu20.04_VS-Code-Server_SubImage"
3+
LABEL AboutImage "Debian:10_VS-Code-Server_SubImage"
44

55
LABEL Maintainer "Apoorv Vyavahare <apoorvvyavahare@pm.me>"
66

77
#Code-Server Version
8-
ENV CS_VERSION=3.10.2 \
8+
ENV CS_VERSION=3.11.0 \
99
#Code-Server login type: {password, none}
1010
AUTH_TYPE="password" \
1111
#Code-Server login password (If AUTH_TYPE=password)
@@ -31,4 +31,4 @@ ENV CS_VERSION=3.10.2 \
3131
LANGUAGE=en_US.UTF-8 \
3232
LC_ALL=C.UTF-8
3333

34-
ADD $DRIVE_ACCESS_URL $CUSTOM_HOME/.credentials/drive-access.json
34+
# ADD $DRIVE_ACCESS_URL $CUSTOM_HOME/.credentials/drive-access.json

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1 align="center">Visual Studio Code Server</h1>
55
</p>
66

7-
[![Ubuntu Version](https://img.shields.io/static/v1?label=Ubuntu&message=20.04&color=E95420&logo=ubuntu)]() [![Maintainer](https://img.shields.io/static/v1?label=Maintainer&message=apoorvvyavahare@pm.me&color=1e90ff)]() [![Maintainance](https://img.shields.io/badge/Maintenance-inactive-yellow.svg)]() [![Pulls](https://img.shields.io/docker/pulls/vital987/code-server.svg)](https://hub.docker.com/r/vital987/code-server) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)]()<br>[![VS Code](https://img.shields.io/static/v1?label=VSCode&message=v1.56.1&color=1e90ff&logo=visual-studio-code&logoColor=1e90ff)]()<br>[![CodeServer](https://img.shields.io/static/v1?label=CodeServer&message=v3.10.2&color=34AD7A&logo=visual-studio-code&logoColor=34AD7A)]()<br><a href="https://heroku.com/deploy?template=https://github.com/vital987/code-server" target="_blank"><img src="https://www.herokucdn.com/deploy/button.svg"></a>
7+
[![Debian Version](https://img.shields.io/static/v1?label=Debian&message=10&color=E95420&logo=Debian)]() [![Maintainer](https://img.shields.io/static/v1?label=Maintainer&message=apoorvvyavahare@pm.me&color=1e90ff)]() [![Maintainance](https://img.shields.io/badge/Maintenance-inactive-yellow.svg)]() [![Pulls](https://img.shields.io/docker/pulls/vital987/code-server.svg)](https://hub.docker.com/r/vital987/code-server) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)]()<br>[![VS Code](https://img.shields.io/static/v1?label=VSCode&message=v1.57&color=1e90ff&logo=visual-studio-code&logoColor=1e90ff)]()<br>[![CodeServer](https://img.shields.io/static/v1?label=CodeServer&message=v3.11.0&color=34AD7A&logo=visual-studio-code&logoColor=34AD7A)]()<br><a href="https://heroku.com/deploy?template=https://github.com/vital987/code-server" target="_blank"><img src="https://www.herokucdn.com/deploy/button.svg"></a>
88

99
## Table of contents :
1010
* [Specifications](#specifications-)
@@ -30,12 +30,13 @@
3030
* PowerShell
3131
* Python Intellisense
3232
* VSCode Action Buttons
33+
* rust-lang
3334
* **Google Drive Upload**
3435
* **Languages Installed :**<br><br>
3536
[![C](https://img.shields.io/static/v1?label=C&message=%20&logo=c)]()&nbsp; [![C++](https://img.shields.io/static/v1?label=C%2b%2b&message=%20&logo=c%2b%2b&logoColor=1e90ff&color=1e90ff)]()&nbsp; [![C Sharp](https://img.shields.io/static/v1?label=C%23&message=%20&logo=c-sharp&logoColor=green&color=green)]()&nbsp; [![Clojure](https://img.shields.io/static/v1?label=Clojure&message=%20&logo=clojure&logoColor=brightgreen&color=brightgreen)]()&nbsp; [![Go](https://img.shields.io/static/v1?label=Go&message=%20&logo=go&logoColor=1e90ff&color=1e90ff)]()&nbsp; [![Java](https://img.shields.io/static/v1?label=Java&message=%20&logo=java&logoColor=f89820&color=f89820)]()&nbsp; [![Javascript](https://img.shields.io/static/v1?label=Javascript&message=%20&color=f7df1e&logo=javascript&logoColor=f7df1e)]()&nbsp; [![Lua](https://img.shields.io/static/v1?label=Lua&message=%20&color=blueviolet&logo=lua&logoColor=9638E7)]()&nbsp; [![Perl](https://img.shields.io/static/v1?label=Perl&message=%20&logo=perl&logoColor=cc99ff&color=cc99ff)]()&nbsp; [![PowerShell](https://img.shields.io/static/v1?label=PowerShell&message=%20&logo=powershell&color=03A9F4&logoColor=03A9F4)]()&nbsp; [![Python](https://img.shields.io/static/v1?label=Python&message=%20&logo=python&color=blue)]()&nbsp; [![R](https://img.shields.io/static/v1?label=R&message=%20&logo=r&logoColor=blue&color=blue)]()&nbsp; [![Raku](https://img.shields.io/static/v1?label=Raku&message=%20&color=red&logo=perl&logoColor=red)]()&nbsp; [![Ruby](https://img.shields.io/static/v1?label=Ruby&message=%20&logo=ruby&logoColor=9b111e&color=9b111e)]()&nbsp; [![Shellscript](https://img.shields.io/static/v1?label=Shellscript&message=%20&color=4eaa25&logo=gnu-bash&logoColor=4eaa25)]()&nbsp; [![Scala](https://img.shields.io/static/v1?label=Scala&message=%20&color=red&logo=scala&logoColor=red)]()&nbsp; [![Swift](https://img.shields.io/static/v1?label=Swift&message=%20&color=red&logo=swift&logoColor=red)]()
3637

3738
## **Environment Variables :**
38-
| CS_VERSION | 3.10.2 |
39+
| CS_VERSION | 3.11 |
3940
|:-:|:-:|
4041
| AUTH_TYPE | Code-Server login type: {password, none} |
4142
| PASSWORD | Code-Server login password (If AUTH_TYPE=password) |
@@ -101,7 +102,7 @@
101102
* Buttons present at the bottom bar :
102103
* **↻** : Refresh the buttons.
103104
* **ClearWorkspace :** Deletes all the folders in workspace directory.
104-
* **ResetWorkspace :** Resets the workspace folder with all sample files.
105+
* **ResetWorkspace :** Resets the workspace folder with all sample files.
105106
* **DriveUpload :** Archive workspace directory (excluding sample files) and upload to google drive.
106107
* [ ! ] The buttons need to be refreshed everytime after use.
107108

container_files/code-server_data/.data/User/settings.json renamed to container/code-server/User/settings.json

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,32 @@
22
"workbench.iconTheme": "material-icon-theme",
33
"gitlens.showWhatsNewAfterUpgrades": false,
44
"actionButtons": {
5-
6-
75
"defaultColor": "#1e90ff", // Can also use string color names.
8-
"loadNpmCommands":false, // Disables automatic generation of actions for npm commands.
9-
"reloadButton":"", // Custom reload button text or icon (default ↻). null value enables automatic reload on configuration change
6+
"loadNpmCommands": false, // Disables automatic generation of actions for npm commands.
7+
"reloadButton": "", // Custom reload button text or icon (default ↻). null value enables automatic reload on configuration change
108
"commands": [
119
{
12-
"cwd": "/app/WORKSPACE", // Terminal initial folder ${workspaceFolder} and os user home as defaults
10+
"cwd": "/app/WORKSPACE", // Terminal initial folder ${workspaceFolder} and os user home as defaults
1311
"name": "ResetWorkspace",
1412
"color": "#1e90ff",
1513
"singleInstance": true,
1614
"command": "rm -rf /app/WORKSPACE/* && cp -r /app/workspace.bak/* /app/WORKSPACE/ && exit", // This is executed in the terminal.
1715
},
1816
{
19-
"cwd": "/app/WORKSPACE", // Terminal initial folder ${workspaceFolder} and os user home as defaults
17+
"cwd": "/app/WORKSPACE", // Terminal initial folder ${workspaceFolder} and os user home as defaults
2018
"name": "ClearWorkspace",
2119
"color": "#1e90ff",
2220
"singleInstance": true,
2321
"command": "rm -rf /app/WORKSPACE/* && exit", // This is executed in the terminal.
2422
}
2523
]
2624
},
27-
"workbench.colorTheme": "Atom One Dark",
25+
"workbench.colorTheme": "Default Dark+",
2826
"code-runner.enableAppInsights": false,
2927
"code-runner.executorMapByFileExtension": {
3028
".raku": "clear && perl6"
3129
},
3230
"code-runner.executorMap": {
33-
34-
35-
3631
"javascript": "clear && node",
3732
"java": "clear && cd $dir && javac $fileName && java $fileNameWithoutExt",
3833
"c": "clear && cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
@@ -131,10 +126,8 @@
131126
}
132127
],
133128
"editor.fontFamily": "'Fira Code'",
134-
"yaml.customTags": [
135-
136-
],
129+
"yaml.customTags": [],
137130
"terminal.integrated.fontFamily": "\"consolas\"",
138131
"browser-preview.startUrl": "https://github.com/vital987",
139132
"browser-preview.chromeExecutable": "brave-browser",
140-
}
133+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"C Boilerplace": {
3+
"prefix": "boilerplate",
4+
"body": [
5+
"#include <stdio.h>",
6+
"#include <stdlib.h>",
7+
"#include <string.h>",
8+
"#include <math.h>",
9+
"#include <signal.h>",
10+
"int main (int argc, char *argv[]) {",
11+
" ${1:Main Code}",
12+
"return 0;",
13+
"}"
14+
],
15+
"description": "C Boilerplate"
16+
}
17+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"C++ Boilerplace": {
3+
"prefix": "boilerplate",
4+
"body": [
5+
"#include <bits/stdc++.h>",
6+
"using namespace std;",
7+
"int main () {",
8+
" ${1:Main Code}",
9+
"return 0;",
10+
"}"
11+
],
12+
"description": "C++ Boilerplate"
13+
}
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"C Boilerplace": {
3+
"prefix": "boilerplate",
4+
"body": [
5+
"namespace ${1:Namespace}",
6+
"{",
7+
"class ${2:Class Name} {",
8+
"static void Main(string[] args)",
9+
"{",
10+
"${3:Main Code}",
11+
"}",
12+
"}",
13+
"}"
14+
],
15+
"description": "C Boilerplate"
16+
}
17+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Go Boilerplate": {
3+
"prefix": "boilerplate",
4+
"body": [
5+
"package main",
6+
"import \"fmt\"",
7+
"func main() {",
8+
" //Code Here",
9+
" $1",
10+
"}"
11+
],
12+
"description": "Go Boilerplate"
13+
}
14+
}

0 commit comments

Comments
 (0)