2017-10-20 7 views
3

私はVSコードをエディタとして使用します。私たちは.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

MY独自のソリューション:

私が持っていた問題は、私は私のvscodeに拡張editorconfigを追加したこと、でしたが、それのためにnpm packageをインストールしていません。だから、あなたのvscodeだけに拡張機能を追加するだけでは十分ではありません。あなたはパッケージをインストールして、実行することもできます。

私はこのようなグローバルnpm packageインストール:私は拡張子を追加し、それを有効にした後npm install -g editorconfig

を。今それは完璧に動作します。ここで

は、必要なNPMパッケージへのリンクです:https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

:ここ https://www.npmjs.com/package/editorconfig

は、あなたのvscodeのために必要なextenionへのリンクあり

関連する問題