     # no tab-stops
     unless tabStops.length
       return "#{input}$1"
-    
+
     tabStops = tabStops.sort()
     highest = parseInt(tabStops[tabStops.length - 1]) + 1
 
     return "#{input}$#{highest}"
 
   removeTrailingTabstops: (input) ->
-    if input.match(/\$\d+$/g) is null
+    if input.match(/\$\d+$/g) is null or @atom.config.get('atomizr.removeTrailingTabstops') is false
       # nothing to do here
       return input
 


          @atom.notifications.addWarning("Atomizr", detail: "Conversion aborted, trigger '#{v.trigger}' contains multiple tabs", dismissable: true) if tabs.length > 2

          trigger = tabs[0] 
          description = tabs.slice(-1).pop()
        else
          description = v.trigger

  config:
    renameFiles:
      title: "Rename Files"
      description: "After conversion, files are renamed for better grammar detection"
      type: "boolean"
      default: true
      order: 1
    addTrailingTabstops:
      title: "Add trailing tab-stops"
      description: "Without trailing tab-stops, Atom snippets act weird"
      type: "boolean"
      default: true
      order: 2
    removeTrailingTabstops:
      title: "Remove trailing tab-stops"
      description: "Nobody needs trailing tab-stops in Sublime Text files"
      type: "boolean"
      default: true
      order: 3
  atom: atom
  workspace: atom.workspace
  grammars: atom.grammars
