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


정규식을 사용하여 선택된 라인의 텍스트를 정렬해 주는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=janjoerke.align-by-regex



  • 여러 줄의 텍스트를 정규식으로 정렬합니다.
  • 반복되는 사용을 위해 정규 표현식을 템플릿으로 저장합니다. (사용법 : 정규 표현식 대신 템플릿의 이름을 입력하십시오.)


이 확장 프로그램은 다음 설정을 제공합니다.

  • align.by.regex.templates: 사용자 지정 정규 표현식 템플릿 (예 : "align.by.regex.templates": { "abc": "=|,|:"}.


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


VSCode 에서 코드를 이쁘게 변경해 주는 확장입니다.


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




Visual Studio Code 에서 javascript, JSON, CSS, Sass 와 HTML 의 코드를 이쁘게 변경해 줍니다.


CSS 변경전


CSS 변경후


.jsbeautifyrc settingVS Code setting
eolfiles.eol
tab_sizeeditor.tabSize
indent_with_tabs (inverted)editor.insertSpaces
wrap_line_lengthhtml.format.wrapLineLength
wrap_attributeshtml.format.wrapAttributes
unformattedhtml.format.unformatted
indent_inner_htmlhtml.format.indentInnerHtml
preserve_newlineshtml.format.preserveNewLines
max_preserve_newlineshtml.format.maxPreserveNewLines
indent_handlebarshtml.format.indentHandlebars
end_with_newlinehtml.format.endWithNewline (html)
end_with_newlinefile.insertFinalNewLine (css, js)
extra_linershtml.format.extraLiners
space_after_anon_functionjavascript.format
.insertSpaceAfterFunctionKeywordForAnonymousFunctions
space_in_parenjavascript.format
.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis

Note that the html.format settings will ONLY be used when the document is html. javascript.format settings are included always.

Also runs html and css beautify from the same package, as determined by the file extension. The schema indicates which beautifier each of the settings pertains to.

The .jsbeautifyrc config parser accepts sub elements of htmljs and css so that different settings can be used for each of the beautifiers (like sublime allows). Note that this will cause the config file to be incorrectly structured for running js-beautify from the command line.

Settings are inherited from the base of the file. Thus:

{
  "indent_size": 4,
  "indent_char": " ",
  "css": {
    "indent_size": 2
  }
}

Will result in the indent_size being set to 4 for JavaScript and HTML, but set to 2 for CSS. All will get the same indent_char setting.

If the file is unsaved, or the type is undetermined, you'll be prompted for which beautifier to use.

You can control which file types, extensions, or specific file names should be beautified with the beautify.languagesetting.

{
  "beautify.language": {
    "js": {
      "type": ["javascript", "json"],
      "filename": [".jshintrc", ".jsbeautifyrc"]
      // "ext": ["js", "json"]
      // ^^ to set extensions to be beautified using the javascript beautifier
    },
    "css": ["css", "scss"],
    "html": ["htm", "html"]
    // ^^ providing just an array sets the VS Code file type
  }
}

Beautify on save will be enabled when "editor.formatOnSave" is true.

Beautification on particular files using the built in Format Document (which includes formatting on save) can be skipped with the beautify.ignore option. Using the Beautify file and Beautify selection will still work. For files opened from within the workspace directory, the glob patterns will match from the workspace root. For files opened from elsewhere, or when no workspace is open, the patterns will match from the system root.

Examples:

/* ignore all files named 'test.js' not in the root folder,
   all files directly in any 'spec' directory, and
   all files in any 'test' directory at any depth
*/
"beautify.ignore": ["*/test.js", "**/spec/*", "**/test/**/*"]

/* ignore all files ending in '_test.js' anywhere */
"beautify.ignore": "**/*_test.js"

Note that the glob patterns are not used to test against the containing folder. You must match the filename as well.

Embedded version of js-beautify is v1.8.4

Use the following to embed a beautify shortcut in keybindings.json. Replace with your preferred key bindings.

{
  "key": "cmd+b",
  "command": "HookyQR.beautify",
  "when": "editorFocus"
}


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


상태바에 IP 주소를 표시하고 텍스트로 삽입할 수 있는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=Compulim.vscode-ipaddress




이 Visual Studio Code 확장을 사용하면 상태바에 현재 IP 주소를 쉽게보고, IPv4, IPv6 및 여러 활성 네트워크 인터페이스의 공용 IP 주소를 포함하여 텍스트에 삽입 할 수 있습니다.




상태바에서 IP 주소를 찾을 수 있습니다. IP 주소를 클릭하면 모든 IP 주소를 반복해서 표시해 줍니다.


IP 주소를 텍스트에 삽입하려면,

  • F1 을 눌러 커맨드 팔레트 가져 오기
  • "Insert IP Address"를 입력하거나 선택하십시오.

아래의 JSON으로 키보드 단축키를 수정할 수도 있습니다.

{
  "key": "alt+shift+i",
  "command": "ipAddress.insertIPAddress",
  "when": "editorTextFocus"
}

공인 IP 주소는 OpenDNS를 통해 얻을 수 있으며 check-ip 에서 매분마다 업데이트됩니다.

쿼리 공개 IP 주소는 패킷을 인터넷으로 보내야하므로 네트워크 트래픽을 최소화 하고자합니다. 

상태바에 공용 IP 주소가 표시되지 않으면 IP 주소를 업데이트하지 않습니다. 

그리고 그것이 보여 지더라도 우리는 1 분에 1 회 이상 그것을 업데이트하지 않을 것입니다.

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


각 VSCode 창의 ActivityBar 및 TitleBar 에 고유한 색상을 자동으로 추가해 주는 확장입니다.


링크 : https://marketplace.visualstudio.com/items?itemName=stuart.unique-window-colors





이 확장은 새로운 VSCode 창을 열때 루트 디렉터리 이름의 해시를 기반으로 고유한 색을 제공합니다. 다음과 같은 세 가지 색상을 .vscode/settings.json. 에 즉시 작성하여 이 작업을 수행합니다.

  "workbench.colorCustomizations": {
    "activityBar.background": "#13332E",
    "titleBar.activeBackground": "#19423B",
    "titleBar.activeForeground": "#F6FBFB"
  }

색상이 수정되었거나 다른 설정이 포함되어 있지 않으면 VSCode 창이 닫힐때마다 이 파일과 폴더가 삭제됩니다.


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


공식적으로 지원되는 대부분의 언어에 대해 Javadoc 스타일의 여러 줄 주석과 한 줄 주석 블록에 대한 블록 주석 완성 기능을 제공합니다.


링크 : https://marketplace.visualstudio.com/items?itemName=kevinkyang.auto-comment-blocks





/** 입력 으로 블록 주석을 시작시 Enter 키를 누르면 확장 블록을 닫습니다. 주석 블록 안에있는 동안, 확장은 모든 새로운 줄의 시작 부분에 별표를 삽입하고 들여 쓰기를 고려하여 주석을 정렬합니다.


댓글 스타일언어 지원
/** */C, C ++, C #, CSS, Go, Groovy, Java, Less, Objective C / C ++, PHP, Sass, Rust, Swift
/*! */C, C ++
/////C, C ++, C #, F #, Go, Groovy, Java, JavaScript, Less, Objective C / C ++, PHP, Rust, Sass, Swift, TypeScript
#CoffeeScript, Dockerfile, Makefile, Perl, PowerShell, Python, R, Ruby, YAML
;Clojure


+ Recent posts