Having trouble overriding 'void' snippet with C language


#1

Hello everyone, I am trying to remove/override the snippet for ‘void’ in the C language. I have searched all over google, as well as within these forums, and nothing I have found has worked. It seems that the snippet can’t be removed, so my next best option is to override it’s behavior to do nothing (or insert a tab) when the tab key is pressed. I have put the following in my ‘snippets.cson’ file, but it’s still expanding the snippet after I press void+tab…

'.source.c':
  'Remove void snippet':
    'prefix': 'void'
    'body': 'void	'

Any idea what I am doing wrong here? Thanks.


#2

Have you tried this?

'.source.c':
  'void':
    'prefix': 'void'
    'body': 'void	'

#3

Just tried it now, it didn’t work. :frowning: