Skip to content

bappasahabapi/Visual-Studio-Code-Basic-Settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

🆃🅾🅿🅸🅲🆂 :

⚙ Visiual-Studio-Basic-Settings:

⚙ Node js in mackbook m1

⚙ Github repository clone rule

⚙ MongoDB Connection

/ zsh terminal customization

PROMPT=''
PROMPT='$'
PROMPT='%1~ $ '
PROMPT='%B%1~ $ '%b
PROMPT='%B%F{cyan}%1~%f$ %b'
PROMPT='%B%F{cyan}%1~%f %F{178}$%f %b'

command + shift + . -->show the hidden File.

    and paste the line:
    PROMPT='%B%F{cyan}%1~%f %F{178}$%f %b'

🔴🟡🟢 Visual studio code extension code:

1. Live Server - ritwik dey
2. ES Lint - Dirk Baeumer
3. Prettier - Code formatter - Esben Petersen
4. vscode-icons - VSCode Icons Team
5. Path Autocomplete - Mihai Vilcu
6. Turbo Console Log - ChakrounAnas
7. ES7 React/Redux/GraphQL/React-Native snippets - dsznajder
8. Dracula Official - Dracula Theme
9. Auto Rename Tag - Jun Han
10. Andromeda - Eliver Lara
11. Emoji Snippets - Devzstudio
12. Community Material Theme - Mattia Astorino
13. code-snippet--screenshort tool

🖼 𝐒𝐜𝐫𝐞𝐞𝐧𝐂𝐚𝐬𝐭 --> 𝐟𝐨𝐫 𝐦𝐚𝐤𝐞𝐢𝐧𝐠 𝐯𝐢𝐝𝐞𝐨𝐬

💙💚💛 🆃🅷🅴🅼🅴


𝟭.  𝗷𝗲𝗹𝗹𝘆𝗳𝗶𝘀𝗵
𝟮.  𝗖𝗼𝗯𝗮𝗹𝘁 𝟮
𝟯.  𝗦𝘂𝗯𝗹𝗶𝗺𝗲 𝗧𝗲𝘅𝘁
4.  𝐚𝐧𝐝𝐫𝐨𝐦𝐞𝐝𝐚
5.  𝗱𝗰𝗼𝗱𝗲 𝗧𝗵𝗲𝗺𝗲
6. Make app theme

💥💢💥 𝙁𝙤𝙣𝙩 --> 𝘾𝙖𝙨𝙘𝙖𝙙𝙞𝙖 𝘾𝙤𝙙𝙚

🔷🔺🔶 🅴🆇🆃🅴🅽🆃🅸🅾🅽

1.  Auto Rename Tag
2.  file-icons
3.  Bracket Pair Colorizer 2
4.  Dummy Text Generator
5.  code snapshort
6.  tab nine

🎈🎉🎄 🅲🅾🅾🅻 🆄🆃🅸🅻🅸🅴🆂


1.  word warp
2.  mouse wheel

🚗 🆄🆂🅴🆁 🆂🅽🅸🅿🅿🅴🆃


go to code--> preferace==> user snippent
JavaScript:
		console log = cons(and hit enter)
		document.write(); = document(and hit enter)

🟩 🆂🅷🅾🆁🆃🅲🆄🆃 🅲🅾🅼🅼🅰🅽🅳🆂


1. open command palettle: 	𝐜𝐭𝐫 + 𝐬𝐡𝐢𝐟𝐭 + 𝐩
2. open terminal : 		𝐜𝐭𝐫 + 𝐬𝐡𝐢𝐟𝐭 + `
3. Move line down or up : 	𝐚𝐥𝐭𝐫 + 𝐚𝐫𝐫𝐨𝐰 𝐮𝐩 𝐨𝐫 𝐝𝐨𝐰𝐧
4. Copy line down : 		𝐜𝐭𝐫 + 𝐃
5. Make multiple div: 		𝐝𝐢𝐯.𝐛𝐨𝐱.*𝟔 𝐚𝐧𝐝 𝐩𝐫𝐞𝐬𝐬 𝐞𝐧𝐭𝐞𝐫
6. Use multiple cursor: 	𝐚𝐥𝐭 + 𝐦𝐨𝐮𝐬𝐞
7. Find something|ReplaceClass: 𝐜𝐭𝐫 + 𝐅```

𝐧𝐨𝐝𝐞 𝐣𝐬
𝐡𝐭𝐭𝐩𝐬://𝐧𝐨𝐝𝐞𝐣𝐬.𝐨𝐫𝐠/𝐞𝐧/

𝐨𝐩𝐞𝐧 𝐭𝐞𝐫𝐦𝐢𝐧𝐚𝐥

𝐧𝐨𝐝𝐞 --𝐯𝐞𝐫𝐬𝐢𝐨𝐧
𝐧𝐩𝐦 --𝐯𝐞𝐫𝐬𝐢𝐨𝐧

𝐜𝐝 ~ 𝐃𝐞𝐬𝐤𝐭𝐨𝐩
𝐜𝐥𝐞𝐚𝐫
𝐩𝐰𝐝


𝐧𝐩𝐱 𝐜𝐫𝐞𝐚𝐭𝐞-𝐫𝐞𝐚𝐜𝐭-𝐚𝐩𝐩 𝐦𝐲-𝐚𝐩𝐩
𝐜𝐝 𝐦𝐲-𝐚𝐩𝐩
𝐧𝐩𝐦 𝐬𝐭𝐚𝐫𝐭

𝐓𝐨 𝐨𝐩𝐞𝐧 𝐯𝐢𝐬𝐮𝐚𝐥 𝐬𝐭𝐮𝐝𝐢𝐨 𝐜𝐨𝐝𝐞:
𝐜𝐨𝐝𝐞 .

❓one time:

1. nodemon globally install
2. mongodb atlas user, access
3. Network access (ip address allow)

Every projects:

1. install mongodb, express, cors, dotenv
2. import (require), mongodb
3. copy uri (connection string)
4. create the client (copy code from atlas)
5. Create or get database access credentials (username, password)
6. create .env file and add DB_USER and DB_PASS as environment variable
7. Make sure you require (import) dotenv
8. Convert URI string to a template string.
9. Add DB_USER and DB_PASS in the connection URI string.
10. Check URI string by using console.log
11. Create async function run and call it by using run().catch(console.dir)
12. add try and finally inside the run function.
13. comment out await client.close() to keep the connection alive
14. add await client.connect(); inside the try block
15. use a console.log after the client.connect to ensure database is connected
const express = require("express");
const { MongoClient } = require("mongodb");
require("dotenv").config();

const app = express();
const port = process.env.PORT || 5000;

const uri = `mongodb+srv://${process.env.DB_USER}:${process.env.DB_PASS}@cluster0.swu9d.mongodb.net/myFirstDatabase?retryWrites=true&w=majority`;

console.log(uri);

const client = new MongoClient(uri, {
  useNewUrlParser: true,
  useUnifiedTopology: true,
});

async function run() {
  try {
    await client.connect();
    console.log("database connected");
  } finally {
    // await client.close()
  }
}
run().catch(console.dir);

app.get("/", (req, res) => {
  res.send("Hello World!");
});

app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`);
});

Command these five steps to clone a git repository

1.  git clone --bare proHero-htpps/link
2.  cd (and go to that clone .git folder)
3.  git push --mirror my-htpps/link
4.  git remote -v
5.  git remote set-url origin my-htpps/link

𝐀𝐥𝐥 𝐫𝐢𝐠𝐡𝐭 𝐫𝐞𝐬𝐞𝐫𝐯𝐞𝐝 𝐛𝐲 𝐛𝐚𝐩𝐩𝐚 𝐬𝐚𝐡𝐚 | 𝐁𝐬𝐜 𝐢𝐧 𝐂𝐒𝐄 |𝐑𝐌𝐒𝐓𝐔


About

name of some best theme , fonts, shortcuts and many more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors