Search code examples
settingsvisual-studio-code

How to cancel auto delete blank lines vs code?


I have a typescript files and when I add something and saving, auto delete blank lines is working, after that I have to accept all incoming changing for gitlab. How can I cancel this auto delete blank lines?

    {
       "region_of": "Your location",
       "list_emtpy": "Your list is empty",

       "no_task_for_animal": "There is no task for this animal",
       "scanner_select_obj_help": "Please enter barcode number",

       "animal_id": "animals IN"
    }

If I will save this file, there will be not any blank lines.


Solution

  • go to settings, write on Search settings -> auto delete blank line choose typescript block's, in the end uncheck Typescript>Format:Enable and saving your settings. Your .json files will not auto delete blank lines.