brackets-snippets icon indicating copy to clipboard operation
brackets-snippets copied to clipboard

Space is converted to tab

Open jmordeno opened this issue 9 years ago • 4 comments

I tried adding a comment block snippet like this: /** _* _* _* _*/

but when I generate it, it displays like this: /** ____ * ____ * ____ * ____ */

The single space is converted to tab indent(4 spaces).

jmordeno avatar Feb 10 '16 07:02 jmordeno

Same problem here. Tried creating a snippet like this:

/**
 * ${1}
 * 
 * ${2:what it does}
 * 
 * @method ${1}
 * @chainable
 * @param ${3:paramName} ${4:Param Description}
 */
this.${1} = (${3})=>{
    ${5}
    return this;
};

And ended up with this:

/**
        * 
        * 
        * what it does
        * 
        * @method 
        * @chainable
        * @param paramName Param Description
        */
    this. = ()=>{

                    return this;
    };

felipenmoura avatar Mar 25 '16 17:03 felipenmoura

Are you triying to do something like this?: https://github.com/wikunia/brackets-funcdocr

mrroot5 avatar Mar 29 '16 08:03 mrroot5

Yes, I was. Although...the idea of not being able to use spaces in snippets is a bit annoying :p Still think spaces should be treated as spaces.

felipenmoura avatar Mar 30 '16 04:03 felipenmoura

I have the same trouble to make annotations by creating entities with Symfony/Doctrine :

/**
 * @ORM\ManyToOne(targetEntity="OC\PlatformBundle\Entity\Advert")
 * @ORM\JoinColumn(nullable=false)
 */
private $Entity;

gives :

/**
    * @ORM\ManyToOne(targetEntity="OC\PlatformBundle\Entity\Advert")
    * @ORM\JoinColumn(nullable=false)
    */
private $Entity;

thanks to tell if there is a solution

mickaellalande avatar Jul 02 '16 09:07 mickaellalande