반응형
반응형

My Visual Studio Code Setup | 2023

https://medium.com/@piyushyadav0191/my-visual-studio-code-setup-2023-2af8d36a5118

 

My Visual Studio Code Setup | 2023

Visual Studio Code, also known as VS Code, is a free and open-source code editor developed by Microsoft that has taken the developer world…

medium.com

created with 

Visual Studio Code, also known as VS Code, is a free and open-source code editor developed by Microsoft that has taken the developer world by storm. With its sleek interface, extensive customization options, and a vast array of extensions, VS Code has quickly become the go-to choice for developers looking to streamline their workflow and boost productivity. Whether you’re a seasoned developer or just starting out, VS Code is a tool you won’t want to miss.

Topics which I will be talking about

  • My setting Config
  • My Theme
  • My Extensions
  • Surprise

My Setting Config

VS Code settings JSON config includes a variety of configurations to customize your coding experience.

Tip:- You can customize your settings.json file by typing Ctrl + Shift + P, and then typing ‘User Settings’.

{
  "workbench.colorTheme": "Vim Deep Dark", // My Theme
  "workbench.iconTheme": "material-icon-theme", // My Icon Theme
  "editor.fontFamily": "Fira Code", // My Font
  "editor.fontSize": 19, // Font size
  "editor.minimap.enabled": false, // disabled minimap
  "editor.fontLigatures": true, // enabled ligatures
  "editor.formatOnPaste": true, // text will format on pasting the code
  "editor.formatOnSave": true, // text will format if you hit ctrl + S
  "editor.defaultFormatter": "esbenp.prettier-vscode", // formatter 
  "terminal.integrated.fontFamily": "MesloLGS Nerd Font", // terminal font to use icons
  "debug.terminal.clearBeforeReusing": true,// clears your debug terminal before using
  "terminal.integrated.fontSize": 19, // terminal font size
}

How it looks like in VS code

My Theme

Well, if you have read my configuration, then you should already know the name of the theme I am using

Vim Theme

Demo

Vim theme

Apart from this theme, I like to use Andromeda Mariana — Italic

Second Theme demo

Andromeda Mariana

My Extensions

Visual Studio Code (VS Code) is a popular code editor that offers a range of extensions to enhance its functionality. VS Code extensions are add-ons that provide additional features and capabilities to the editor, such as new language support, code snippets, syntax highlighting, debugging tools, and more.

Prisma

Prisma

Only for DATABASE USERS :- Adds syntax highlighting, formatting, auto-completion, jump-to-definition and linting for .prisma files.

MDX

MDX

Language support for MDX

Prettier

Prettier- Code formatter

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Material Icon Theme

Material Icon Theme

Material Design Icons for Visual Studio Code

ES7 Support

ES7

Extensions for React, React-Native and Redux in JS/TS with ES7+ syntax. Customizable. Built-in integration with prettier.

Color Highlight

Color Highlighter

This extension styles css/web colors found in your document.

Github Copilot

Copilot

GitHub Copilot provides autocomplete-style suggestions from an AI pair programmer as you code. You can receive suggestions from GitHub Copilot either by starting to write the code you want to use, or by writing a natural language comment describing what you want the code to do.

Surprise

“Breaking the Norm: Why I swapped VS Code for Vim and never looked back!”

vim

The File Explorer structure that you are seeing is a Tree View lua plugin which is fabulous, and I am able to code faster than ever using shortcuts.

 
반응형
반응형

7 Unnecessary VSCode Extensions You Should Uninstall Now

https://medium.com/coding-beauty/unnecessary-vscode-extensions-e72cb637f1cf

 

7 Unnecessary VSCode Extensions You Should Uninstall Now

These extensions provide functionality VSCode now has built-in. Removing them will speed up your editor and reduce bloat.

medium.com

반응형
반응형

Ctrl + P : 파일 찾기

 

반응형
반응형

[VSCODE] 확장프로그램 - indent-rainbow

 

현재 편집기 창 탭 크기를 사용하고 혼합 탭 + 공백을 처리할 수 있습니다(권장하지 않음). 

 

또한 들여쓰기가 탭 크기의 배수가 아닌 줄을 눈에 띄게 표시합니다. 시각화는 일부 상황에서 들여쓰기 문제를 찾는 데 도움이 될 수 있습니다.

 

 

https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow 

 

indent-rainbow - Visual Studio Marketplace

Extension for Visual Studio Code - Makes indentation easier to read

marketplace.visualstudio.com

 

반응형
반응형

https://sdc-james.gitbook.io/onebook/2./2.1./2.1.5.-visual-studio-code

 

3.1.5. Visual Studio Code 설치 - OneBook(Python & Deep Learning)

Visual Studio Code(약자 VS Code)는 편리한 프로그래밍 에디터 입니다. Visual Studio Code (VS Code)는 크로스 플랫폼 소스 편집기로서 윈도우즈, 리눅스, Mac OS 에서 무료로 사용할 수 있습다. Visual Studio Code를

sdc-james.gitbook.io

Visual Studio Code(약자 VS Code)는 편리한 프로그래밍 에디터 입니다. Visual Studio Code (VS Code)는 크로스 플랫폼 소스 편집기로서 윈도우즈, 리눅스, Mac OS 에서 무료로 사용할 수 있습다. Visual Studio Code를 설치한 후 여러 Extension들을 설치할 수 있는데, 파이썬 Extension을 설치하면, 파이썬 프로그래밍과 디버깅을 할 수 있습니다.
다음 링크에서 다운로드 할 수 있습니다.
User Installer는 현재 로그온된 사용자 계정에만 설치를 하며, System Installer는 Windows 전체 사용자 계정에서 사용할 수 있도록 설치(관리자 권한 필요)합니다. 저는 System Installer 버전을 다운로드하여 설치하겠습니다.
기본 옵션으로 설치를 끝까지 진행 합니다. 마지막에는 자신이 편리한대로 설정해 줍니다.
 
VSCode 가 설치 완료되면 필요한 Extension 들을 설치해 줍니다. Visual Studio Code를 설치한 후 여러 Extension들을 설치할 수 있는데, 파이썬 Extension을 설치하면, 파이썬 프로그래밍과 디버깅을 할 수 있습니다.
좌측 상단에 python을 입력하면 여러가지 Extension들이 나타납니다. 이중 Python Extension Pack 을 설치하면 Python, MagicPython, Visual Studio InteliCode, Django 등이 한꺼번에 설치됩니다. 이렇게 파이썬 Extension을 설치 완료하면 파이썬 프로그래밍을 진행할 수 있습니다. korean language pack 도 설치해 줍니다.
Pylance, Material Theme, Material Icon Theme, Prettier 등 필요한 Extension 들을 설치해 줍니다.
Pylance : Fast, feature-rich language support for Python
Prettier : 파일 저장시 알아서 포매쇼에 맞게 소스 코드 정
 
이제는 Visual Studio Code의 기본 터미널이 Windows의 Power Shell로 설정되어 있기 때문에 약간의 수정이 필요합니다.
이 기본 터미널의 종류를 cmd 또는 cmdGit Bash로 변경하면 오류없이 실행이 가능합니다. 먼저 Ctrl + Shift + P (컨트롤 + 쉬프트 + P) 키를 눌러 Command Palette를 열고 Terminal: Select Default Shell 을 입력합니다.
VS Code에서 파이썬 코드를 작성하기 위해서는 확장자 .py 를 가진 임의의 파이썬 파일을 생성하면 됩니다. [File] 메뉴에서 [New File]을 눌러 새 파일을 만들면 됩니다. 새 파일을 만드는 것보다 C:\ 에 'korAI'라는 새로운 작업 폴더를 만들어 줍니다.
이 작업 폴더에 새 hello.py 파일을 생성하고 에디터에서 코드를 작성합니다. 그리고 해당 폴더에 저장 합니다.
print("Hello World")
 
코드를 실행하기 전에 인터프리터를 선택해야 합니다. Ctrl + Shift + P (컨트롤 + 쉬프트 + P) 키를 눌러 Command Palette를 열고 Python: Select Interpreter 을 입력합니다.
여기에 가상 환경 설정에서 지정한 koreait 폴더내의 인터프리터를 지정합니다.
koreait 가상환경을 activate 합니다.
코드 작성 완료 후 프로그램을 실행하기 위해서는 [Debug] 메뉴의 [Start Debugging (F5)] 나 [Start without Debugging (Ctrl+F5)]를 누르면 됩니다.
특히 F5를 눌러 디버깅 모드로 실행하면, 로컬변수, 콜스택 등 여러 디버깅 정보를 이용할 수 있으며, Step Over, Step Into 등의 디버거 컨트롤을 사용할 수 있다.
파이썬 파일에 코드를 작성한 후, VS Code 에디터에서 우측 마우스 버튼을 클릭 [Run Python File in Terminal] 메뉴를 선택하면 하단에 터미날 창이 생기고 파이썬 프로그램을 인터프리터와 함께 실행해 준다.
 
VS Code 권장 Extension Pack
 
반응형
반응형

python, anaconda 가상환경에서 파이썬 버전 확인 및 변경

 

VScode에서 인터프리터 연결이 제대로 안될때. 버전이 낮아서 인터프리터 실행못할때 확인 필요

 

가상환경이름을 p_pygame  이라고 가정하고.

 

0. conda  activate (가상환경명) : 가상환경 실행.

1. python -V : 파이썬 버전 확인.

2. conda search python : 사용 가능한 python list 확인.

3. conda install python=x.x.x : 입력 버전으로 파이썬 버전이 변경됨.

4. conda deactivate

5. conda activate p_pygame   : 가상환경 실행.

6. python -V : 변경된 파이썬 버전을 확인할 수 있음.

반응형

+ Recent posts