{"action":"created","issue":{"url":"https://api.github.com/repos/LMMS/lmms/issues/3426","repository_url":"https://api.github.com/repos/LMMS/lmms","labels_url":"https://api.github.com/repos/LMMS/lmms/issues/3426/labels{/name}","comments_url":"https://api.github.com/repos/LMMS/lmms/issues/3426/comments","events_url":"https://api.github.com/repos/LMMS/lmms/issues/3426/events","html_url":"https://github.com/LMMS/lmms/issues/3426","id":214149623,"number":3426,"title":"Code Styling - Tabs Versus Spaces","user":{"login":"tresf","id":6345473,"avatar_url":"https://avatars3.githubusercontent.com/u/6345473?v=3","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-14T17:32:52Z","updated_at":"2017-03-14T18:10:39Z","closed_at":null,"body":"I assume the decision to use tabs over spaces is historical due to the use of editors like `vi`.\r\n\r\nSince we're supporting many platforms and multiple versions of those platforms, configuring QtCreator for each machine can get tedious.\r\n\r\nFirst, I'll make the assumption that QtCreator is the preferred IDE for most contributors.  This has never been made official by the dev team (I personally use whatever is on the machine -- gedit, kate, notepad++, vi, TextWrangler) but I've spoken with many C++/Qt developers over the last year that use it exclusively, and now I'm starting to use it so it's the basis of discussion.\r\n \r\n * Currently, configuring QtCreator is a [4-step process](https://github.com/LMMS/lmms/pull/2033#issuecomment-98895801).\r\n    * Is this something that can be solved by a preference file in the source repo?\r\n * The argument of tabs vs. spaces is a [very old and often heated one](http://softwareengineering.stackexchange.com/a/66) but switching to spacing (e.g. `4` spaces instead of the default tab width of `8`) can prevent the code from \"walking to far to the right\".\r\n\r\n * A major **downside** to switching from tabs to spaces is it's not default for the majority of text editors.\r\n\r\nIs this a standard worth changing moving forward?  What is the primary IDE of choice among developers and how do you handle this problem in other large projects?\r\n\r\nThis isn't meant to start any flame wars.  I'm well aware this is a sensitive topic."},"comment":{"url":"https://api.github.com/repos/LMMS/lmms/issues/comments/286511070","html_url":"https://github.com/LMMS/lmms/issues/3426#issuecomment-286511070","issue_url":"https://api.github.com/repos/LMMS/lmms/issues/3426","id":286511070,"user":{"login":"Spekular","id":8918426,"avatar_url":"https://avatars1.githubusercontent.com/u/8918426?v=3","gravatar_id":"","url":"https://api.github.com/users/Spekular","html_url":"https://github.com/Spekular","followers_url":"https://api.github.com/users/Spekular/followers","following_url":"https://api.github.com/users/Spekular/following{/other_user}","gists_url":"https://api.github.com/users/Spekular/gists{/gist_id}","starred_url":"https://api.github.com/users/Spekular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spekular/subscriptions","organizations_url":"https://api.github.com/users/Spekular/orgs","repos_url":"https://api.github.com/users/Spekular/repos","events_url":"https://api.github.com/users/Spekular/events{/privacy}","received_events_url":"https://api.github.com/users/Spekular/received_events","type":"User","site_admin":false},"created_at":"2017-03-14T18:10:39Z","updated_at":"2017-03-14T18:10:39Z","body":"\"switching to spacing (e.g. 4 spaces instead of the default tab width of 8) can prevent the code from \"walking to far to the right\".\"\r\n\r\nCan't this be fixed by adjusting tab width in your editor of choice? I don't see any argument for spaces unless they've been used in the past and we're keeping consistency."}}
{"actor":{"display_login":"Spekular"}}