VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


JS, CSS, HTML 파일 또는 디렉토리 내의 파일에 대해서 코드를 축소해 주는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=HookyQR.minify




파일을 선택 후 Minify 시 {파일명|디렉토리명}.min.[js|css|html] 형식으로 파일을 생성해 줍니다.


원본 : index.html


축소 : index.min.html

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


도커 컨테이너, 도커 이미지, 도커 허브 및 Azure 컨테이너 레지스트리를 관리해 주는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=formulahendry.docker-explorer




Docker 가 설치되어 있어야 합니다.


도커 컨테이너 관리


도커 이미지 관리


도커 허브 관리


Azure 컨테이너 레지스트리 관리


제안된 도커 이미지


설정

  • docker-explorer.autoRefreshInterval: 컨테이너 목록 자동 갱신 간격 (밀리 초). 자동 새로 고침을 사용하지 않으려면 0으로 설정
  • docker-explorer.executionCommand: 컨테이너에서 실행할 명령입니다.
  • docker-explorer.containerLogsOptions: 컨테이너 로그를 표시하는 옵션입니다. (기본값은 "--tail 50 -f"입니다. )


추가

기본적으로 익명으로 데이터를 수집합니다. 아래의 설정으로 사용하지 않을 수 있습니다.

{
    "docker-explorer.enableTelemetry": false
}


VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


Dockerfile 및 Docker 작성 파일에 대한 구문강조, 명령, 마우스 오버 팁 및 linting 를 추가해 줍니다.


링크 : https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker




Docker 확장을 사용하면 VSCode 에서 컨테이너화 된 응용 프로그램을 쉽게 작성, 관리 및 배포 할 수 있습니다.

  • Dockerfiledocker-compose.yml 및 .dockerignore 파일 자동 생성 (Docker: Add Docker files to Workspace)
  • docker-compose.yml 및 Dockerfile 파일에 대한 구문 강조, 마우스 오버 팁, IntelliSense (completions) 
  • Dockerfile 파일에 대한 Linting (오류 및 경고)
  • 일반적인 Docker 명령에 대한 명령 팔레트 (F1) 통합 (예 docker builddocker push 등)
  • 이미지 관리, 컨테이너 실행 및 Docker 허브 레지스트리에 대한 Explorer 통합
  • Docker 허브 및 Azure 컨테이너 레지스트리에서 Azure App 서비스로 직접 이미지 배포


도커 파일 생성


편집


도커 명령


도커 보기


설정

SettingDescriptionDefault Value
docker.attachShellCommand.linuxContainerAttach command to use for Linux containers/bin/sh
docker.attachShellCommand.windowsContainerAttach command to use for Windows containerspowershell
docker.dockerComposeBuildRun docker-compose with the --build argument, defaults to truetrue
docker.dockerComposeDetachedRun docker-compose with the --d (detached) argument, defaults to truetrue
docker.defaultRegistryPathDefault registry and path when tagging an image""
docker.explorerRefreshIntervalExplorer refresh interval, default is 1000ms1000
docker.hostHost to connect to (same as setting the DOCKER_HOST environment variable)""
docker.imageBuildContextPathBuild context PATH to pass to Docker build command""
docker.languageserver.diagnostics.deprecatedMaintainerControls the diagnostic severity for the deprecated MAINTAINER instructionwarning
docker.languageserver.diagnostics.directiveCasingControls the diagnostic severity for parser directives that are not written in lowercasewarning
docker.languageserver.diagnostics.emptyContinuationLineControls the diagnostic severity for flagging empty continuation lines found in instructions that span multiple lineswarning
docker.languageserver.diagnostics.instructionCasingControls the diagnostic severity for instructions that are not written in uppercasewarning
docker.languageserver.diagnostics.instructionCmdMultipleControls the diagnostic severity for flagging a Dockerfile with multiple CMD instructionswarning
docker.languageserver.diagnostics.instructionEntrypointMultipleControls the diagnostic severity for flagging a Dockerfile with multiple ENTRYPOINT instructionswarning
docker.languageserver.diagnostics.instructionHealthcheckMultipleControls the diagnostic severity for flagging a Dockerfile with multiple HEALTHCHECK instructionswarning
docker.languageserver.diagnostics.instructionJSONInSingleQuotesControls the diagnostic severity for JSON instructions that are written incorrectly with single quoteswarning
docker.languageserver.diagnostics.instructionWorkdirRelativeControls the diagnostic severity for WORKDIR instructions that do not point to an absolute pathwarning
docker.promptOnSystemPrunePrompt for confirmation when running System Prune commandtrue
docker.showExplorerShow or hide the Explorertrue
docker.truncateLongRegistryPathsTruncate long Image and Container registry paths in the Explorerfalse
docker.truncateMaxLengthMaximum number of characters for long registry paths in the Explorer, including ellipsis10

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


Linting, 디버깅, Intellisense, 코드 포맷팅, 리팩토링, 유닛 테스트, 스니펫을 지원하는 Python 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=ms-python.python




Python 이 설치되어 있어야 합니다.





Useful commands

Open the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and type in one of the following commands:

CommandDescription
Python: Select InterpreterSwitch between Python interpreters, versions, and environments.
Python: Create TerminalCreate a VS Code terminal with the selected Python interpreter (environment) activated.
Python: Start REPLStart an interactive Python REPL using the selected interpreter in the VS Code terminal.
Python: Run Python File in TerminalRuns the active Python file in the VS Code terminal. You can also run a Python file by right-clicking on the file and selecting Run Python File in Terminal.
Python: Select LinterSwitch from PyLint to flake8 or other supported linters.

To see all available Python commands, open the Command Palette and type Python.


Supported locales

The extension is available in multiple languages thanks to external contributors (if you would like to contribute a translation, see the pull request which added Italian):

  • de
  • en
  • es
  • fr
  • it
  • ja
  • ko-kr
  • pt-br
  • ru
  • zh-cn
  • zh-tw


Feature details

  • IDE-like features
    • Automatic indenting
    • Code navigation ("Go to", "Find all" references)
    • Code definition (Peek and hover definition, View signatures)
    • Rename refactoring
    • Sorting import statements (use the Python: Sort Imports command)
  • Intellisense and autocomplete (including PEP 484 and PEP 526 support)
    • Ability to include custom module paths (e.g. include paths for libraries like Google App Engine, etc.; use the setting python.autoComplete.extraPaths = [])
  • Code formatting
    • Auto formatting of code upon saving changes (default to 'Off')
    • Use either yapfautopep8, or Black for code formatting (defaults to autopep8)
  • Linting
  • Debugging
    • Watch window
    • Evaluate expressions
    • Step through code ("Step in", "Step out", "Continue")
    • Add/remove breakpoints
    • Local variables and arguments
    • Multi-threaded applications
    • Web applications (such as Flask & Django, with template debugging)
    • Expanding values (viewing children, properties, etc)
    • Conditional breakpoints
    • Remote debugging (over SSH)
    • Google App Engine
    • Debugging in the integrated or external terminal window
    • Debugging as sudo
  • Unit testing
    • Support for unittestpytest, and nose
    • Ability to run all failed tests, individual tests
    • Debugging unit tests
  • Snippets
  • Miscellaneous
    • Running a file or selected text in python terminal
  • Refactoring
    • Rename refactorings
    • Extract variable refactorings
    • Extract method refactorings
    • Sort imports


'언어 > Python' 카테고리의 다른 글

Django - 장고 스니펫  (0) 2018.11.17

VSCode = Visual Studio Code 에서 사용할 수 있는 확장(Extension) 입니다.


Go 에 대해 풍부한 언어 지원을 위한 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go





Go 가 설치되어 있어야 합니다. 

현재 설치된 Go path 는 Go: Current GOPATH 명령어로 확인 가능합니다.

  • Auto Completion of symbols as you type (using gocode)
  • Signature Help for functions as you type (using gogetdoc or godef+godoc)
  • Quick Info on the symbol as you hover over it (using gogetdoc or godef+godoc)
  • Go to or Peek Definition of symbols (using gogetdoc or godef+godoc)
  • Find References of symbols and Implementations of interfaces (using guru)
  • Go to symbol in file or see the file outline (using go-outline)
  • Go to symbol in workspace (using go-symbols)
  • Toggle between a Go program and the corresponding test file.
  • Code Snippets for quick coding
  • Format code on file save as well as format manually (using goreturns or goimports or gofmt)
  • Symbol Rename (using gorename. Note: For Undo after rename to work in Windows you need to have difftool in your path)
  • Add Imports to current file (using gopkgs)
  • Add/Remove Tags on struct fields (using gomodifytags)
  • Generate method stubs for interfaces (using impl)
  • Fill struct literals with default values (using fillstruct)
  • Build-on-save to compile code and show build errors. (using go build and go test)
  • Vet-on-save to run go vet and show errors as warnings
  • Lint-on-save to show linting errors as warnings (using golintgometalintermegacheckgolangci-lint or revive)
  • Semantic/Syntactic error reporting as you type (using gotype-live)
  • Run Tests under the cursor, in current file, in current package, in the whole workspace using either commands or codelens
  • Run Benchmarks under the cursor using either commands or codelens
  • Show code coverage either on demand or after running tests in the package.
  • Generate unit tests skeleton (using gotests)
  • Debug your code, binaries or tests (using delve)
  • Install/Update all dependent Go tools
  • Upload to the Go Playground (using goplay)

In addition to integrated editing features, the extension also provides several commands in the Command Palette for working with Go files:

  • Go: Add Import to add an import from the list of packages in your Go context
  • Go: Current GOPATH to see your currently configured GOPATH
  • Go: Test at cursor to run a test at the current cursor position in the active document
  • Go: Test Package to run all tests in the package containing the active document
  • Go: Test File to run all tests in the current active document
  • Go: Test Previous to run the previously run test command
  • Go: Test All Packages in Workspace to run all tests in the current workspace
  • Go: Generate Unit Tests For Package Generates unit tests for the current package
  • Go: Generate Unit Tests For File Generates unit tests for the current file
  • Go: Generate Unit Tests For Function Generates unit tests for the selected function in the current file
  • Go: Install Tools Installs/updates all the Go tools that the extension depends on
  • Go: Add Tags Adds configured tags to selected struct fields.
  • Go: Remove Tags Removes configured tags from selected struct fields.
  • Go: Generate Interface Stubs Generates method stubs for given interface
  • Go: Fill Struct Fills struct literal with default values
  • Go: Run on Go Playground Upload the current selection or file to the Go Playground


+ Recent posts