{"action":"opened","issue":{"url":"https://api.github.com/repos/AndreaCrotti/yasnippet-snippets/issues/128","repository_url":"https://api.github.com/repos/AndreaCrotti/yasnippet-snippets","labels_url":"https://api.github.com/repos/AndreaCrotti/yasnippet-snippets/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/AndreaCrotti/yasnippet-snippets/issues/128/comments","events_url":"https://api.github.com/repos/AndreaCrotti/yasnippet-snippets/issues/128/events","html_url":"https://github.com/AndreaCrotti/yasnippet-snippets/issues/128","id":136485299,"number":128,"title":"Indentation control and whitespace","user":{"login":"mambolevis","id":13024208,"avatar_url":"https://avatars.githubusercontent.com/u/13024208?v=3","gravatar_id":"","url":"https://api.github.com/users/mambolevis","html_url":"https://github.com/mambolevis","followers_url":"https://api.github.com/users/mambolevis/followers","following_url":"https://api.github.com/users/mambolevis/following{/other_user}","gists_url":"https://api.github.com/users/mambolevis/gists{/gist_id}","starred_url":"https://api.github.com/users/mambolevis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mambolevis/subscriptions","organizations_url":"https://api.github.com/users/mambolevis/orgs","repos_url":"https://api.github.com/users/mambolevis/repos","events_url":"https://api.github.com/users/mambolevis/events{/privacy}","received_events_url":"https://api.github.com/users/mambolevis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T19:25:48Z","updated_at":"2016-02-25T19:25:48Z","closed_at":null,"body":"Hi, \r\n\r\nI am trying to setup the default snippet indentation (c++-mode). Yasnippet uses a default indentation based on tab-with 4 but my desired indentation is 2 spaces (I don't use tabs).  In order to illustrate the problem, the indentation of two clases are shown below:\r\n![image](https://cloud.githubusercontent.com/assets/13024208/13327449/2daa3b80-dbea-11e5-81fc-abb36fe3379d.png)\r\n\r\nThe first snippet class indentation insert 4 spaces. The second snippet class insert one tab at class declaration level and two tabs at method declaration level. \r\nDefault snippet indentations are marked using whitespaces package.\r\n\r\nQuestions:\r\n1. Is it possible to change the default snippet indentation to 2 spaces?\r\n2. How can I obtain the following desired indentation when inserting a snippet?\r\n\r\n![image](https://cloud.githubusercontent.com/assets/13024208/13330185/ea2cb424-dbf7-11e5-8f79-b7eac89c9b11.png)\r\n\r\nThanks\r\n"}}