wcwhitehead / bootstrap-3-snippets

Bootstrap 3 Snippets for Visual Studio Code
28 stars 45 forks source link

Blank Lines #25

Open cspaniard opened 7 years ago

cspaniard commented 7 years ago

Hi,

Is there a way the for the extension not to add blank lines before and after the snippet expansion ?

I saw you have \n hardcoded into the snippet itself, but maybe a configuration setting could prevent from adding those extra blank lines. That way everyone could configure it to their liking...

TIA, David

shaneseaton commented 7 years ago

Agree, they are a nightmare.

jymuk commented 6 years ago

I agree as well... it is very irritating.

markscu commented 5 years ago

Has this ever been solved?

jdrosariop commented 4 years ago

You have to modify the snippets in the snippets.json file.

Here are the steps:

  1. In the Command Palette look for Extensions: Open Extensions Folder
  2. It will open the folder in the Explorer. Go to wcwhitehead.bootstrap-3-snippets-0.1.0\snippets and open snippets.json with a text editor (preferably one that highlights the content like Notepad++ or the same VSCode)
  3. Look for the snippets you want to edit and erase the \n that is found in the beginning and final of the snippet (Don't erase them all, must of them are necessary)
  4. Save the snippets.json file and reload VSCode
  5. Enjoy!!!
victorfeight commented 3 years ago

Here is a snippets with all the \n before and after removed (using neovim macro) https://www.dropbox.com/s/zgx5uvvjwd8a2w6/snippets.json?dl=0