by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 07 11:31
    elharony opened #279
  • Jul 03 19:59
    daniel-liuzzi edited #278
  • Jul 03 19:57
    daniel-liuzzi opened #278
  • Jun 30 07:20
    pallxk synchronize #276
  • Jun 30 07:17
    pallxk opened #276
  • Jun 28 14:40
    papb opened #275
  • Jun 10 12:36
    aaronjheng commented #273
  • Jun 10 12:13
    waldyrious commented #273
  • Jun 08 03:14
    aaronjheng opened #274
  • Jun 08 03:05
    aaronjheng opened #273
  • Jun 01 23:34
    jedmao commented #272
  • Jun 01 23:16
    userlerueda edited #272
  • Jun 01 23:16
    userlerueda edited #272
  • Jun 01 23:16
    userlerueda opened #272
  • May 27 16:45
    jedmao assigned #271
  • May 27 16:45
    jedmao labeled #271
  • May 27 16:45
    jedmao commented #271
  • May 27 06:39
    jedmao commented #212
  • May 27 05:35
    hopeless-programmer-online opened #271
  • May 27 05:03
    tobico commented #212
Sam Verschueren
@SamVerschueren
Rommel Meza
@CXRom

Hi guys, i have some problems with vs code and c#

[*.{js, json, cs, htm, html, cshtml}]
indent_style = space
indent_size = 2

But i have problem with .cs the indent_size is not working if i formt the code always use 4 spaces

Sam Verschueren
@SamVerschueren
I believe spaces arent allowed in the extension list
Try this
[*.{js,json,cs,htm,html,cshtml}]
indent_style = space
indent_size = 2
You’ll notice that the setting in your .cs file is now Spaces: 2
In the bottom right corner
Screen Shot 2016-09-28 at 08.36.32.png
At least, it should be :)
Chaz Gatian
@cgatian
Quick Noob question. Everytime I open a file with this extension enabled the file says its modified it git. However, there are no changes. If I commit the changes, and reopen the file, the file is again modified.
Chaz Gatian
@cgatian
Got it, I think my files are setup for CRLF and editor config is set to LF
Armin Naderi
@naderi_armin_twitter
I installed the extension, do I have to create .editorconfig manually? Will the plugin automatically populate the file?
Assaf
@assaftenen
is it an good extension that does what F12 do in webstorm, I mean help you navigate inside your file shows U the mathod list for e.g?
Scott Spence
@spences10
Will this and JS standard play nicely together?
Hi all btw :wave:
Sam Verschueren
@SamVerschueren
@naderi_armin_twitter Yes you will have to create it yourself. You can however generate a default one by opening the command pallette and select EditorConfig: Generate
@assaftenen Not sure what you mean
@spences10 The only thing EditorConfig does is make sure some config is set correctly like indentation (tabs vs spaces), indentation size, line endings
A linter like ESLint or Standard is totally seperate from this
If you choose for tabs in EditorConfig, and in your linter you also configure that it needs tabs, then yes it will work
But you can totally set EditorConfig to tabs and your linter to spaces because it’s a total different thing
It enforces consistency between your text editors and between the text editors of your team
You don’t want one team member to configure its editor to use spaces while everyone else is using tabs
Scott Spence
@spences10
@SamVerschueren thanks for the explanation :+1: so if I have my VSCode set up to use 2 spaces for tabs and .editorconfig is different which one will be overridden?
Jed Mao
@jedmao
EditorConfig should override your default settings.
@spences10 :point_up:
@SamVerschueren it looks like the detect indentation piece is broken in 0.4.0, according to the broken test.
You mind looking into it?
My entire day was consumed w/ this 0.4.0 release.
I need to do my actual job lol.
Aliaksei Kuncevič
@kuncevic
I have such folders structure:
blob.png

my .editorconfig

# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false

for some reason vscode not picking up the ident_size
just keeping 4 instead of 2
tried to put .editorconfig in different folders, didn't work either

John Meyer
@af4jm

I'm seeing an issue, but I'm not sure if it's a bug or a plugin limitation. Here's the relevant excerpt from .editorconfig...

[*]
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

In Markdown files it's still trimming trailing whitespace, I even tried putting .editorconfig in the same folder as the .md file, and opening that folder in VSCode. It still trims trailing whitespace (which can be significant in Markdown).

Thanks!

Luzanov Pavel
@gitpash
Hi to everyone, I've just add .editorconfig to my project and realised that pre-commit hooks(we use husky and have linting and code coverage) don't triggered by git commit anymore. I'd try to modify .editorconfig file, delete it, restart, rerun the editor - with no luck. I can manually run pre-commit - it works fine. Do somebody have same issue?
Luzanov Pavel
@gitpash
Nevermind, already find the issue.
radharajendran
@radharajendran
Hi
I installed Editor config extension
and node module too
How to use it ?
any other thing have to do ?
have .editorconfig file too
Roge
@RogeMateos
hello i installed editor config in visual studio but i cant see any changes
Roge
@RogeMateos
i created a file
but it doesnt look to get the configuration
Neeraj Aggarwal
@neeradge
dont know if this is the right place but when I code in Javascript in VSCode, the second I type something, all hell breaks loose. I am editing my code, before I can terminate the string message, the Cursor goes to the start of line.
When I start typing on a new line, cursor runs off on top
DanSam5K
@DanSam5K
after installation can't see any notable changes. but its confirm that is installed. So i just hit the save button!
joann saeou
@joannsaeou

hi guys, i have trouble understanding where to look up the setup for

charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

im on the VS studio code, and i have the editorconfig extension but i cant seem to find the file to change the format?

Robin Munn
@rmunn
@joannsaeou It should be a file called .editorconfig (nothing before the dot), probably at the root of your repo. If you're using Linux or OS X and you can't see that file, you might need to turn on a "show hidden files" setting in your file explorer program (i.e., Finder in OS X). I don't know what app you're using so I can't tell you the shortcut key in your particular app, but in the one I use it's Ctrl-H.