2017-10-20 1 views
3

저는 VS 코드를 편집기로 사용합니다. 안에는 configs 형식의 파일 .editorconfig이 있습니다. 우리는 편집자에서 Extension EditorConfig를 사용하여 HTML 및 CSS 일반 형식을 지정합니다. 여기에서 VS 코드에 대한 확장 EditorConfig를 설치 한 : https://github.com/editorconfig/editorconfig-vscodeVS 코드의 EditorConfig가 작동하지 않습니다.

우리 .editorconfig 파일은 다음과 같다 :

# This is the top-most .editorconfig file (do not search in parent directories) 
root = true 

### All files 
[*] 
# Force charset utf-8 
charset = utf-8 
# Indentation 
indent_style = tab 
indent_size = 4 
# line breaks and whitespace 
insert_final_newline = true 
trim_trailing_whitespace = true 
# end_of_line = lf 

### Frontend files 
[*.{css,scss,less,js,json,ts,sass,php,html,hbs,mustache,phtml,html.twig}] 

### Markdown 
[*.md] 
indent_style = space 
indent_size = 4 
trim_trailing_whitespace = false 

### YAML 
[*.yml] 
indent_style = space 
indent_size = 2 

### Specific files 
[{package,bower}.json] 
indent_style = space 
indent_size = 2 

내가 어떤 키보드 단축키를 찾을 수없는, 다른 설정하거나. 내 확장 프로그램을 가져 오는 방법은 .editorconfig 파일에서 처리합니까?

답변

0

내 자신의 해결책 :

내가 내 vscode로 확장 editorconfig을 추가,하지만의 npm package를 설치하지 않은 것을이었다 있었다 문제. 따라서 vscode에만 확장을 추가하는 것만으로는 충분하지 않으므로 패키지를 설치해야 실행될 수 있습니다. 내가 확장자를 추가하고 사용 가능 그 후 npm install -g editorconfig

:

은이 같은 세계적인 npm package를 설치했습니다. 이제 완벽하게 작동합니다. 당신의 vscode에 필요한 extenion에 대한 링크 여기 https://www.npmjs.com/package/editorconfig

됩니다 : https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

다음

필요한 NPM 패키지에 대한 링크입니다
관련 문제