Sublime text 2 so löschen Sie die Kommentare nur

In meine sass-code, ich habe inline-Kommentare, und ich Wünsche, diese zu entfernen, in sublime text. Ist es möglich, dauerhaft löschen alle Kommentar Inhalt allein?

@function emCalc($values) {
  $emValues: '';
  $max: length($values); //Get the total number of parameters passed
  @for $i from 1 through $max {
    $value: (nth($values, $i)); //Take the individual parameter
    $value: $value /($value * 0 + 1); //Doing this gets you one unit (1px)
    $value: $value /$em-base * 1em; //Divide the px value by emBase and return the value as em
    $emValues: #{$emValues + $value}; //Append to array
    @if $i < $max {
      $emValues: #{$emValues + " "}; //Adding space between parameters (except last), if there are multiple parameters
    }
  }
  @return $emValues; //Call emCalc like so emCalc(10, 20, 30, 40) it should return margin: 0.625em 1.25em 1.875em 2.5em
}

InformationsquelleAutor Vinay Raghu | 2013-06-28

Schreibe einen Kommentar