brackets-snippets
brackets-snippets copied to clipboard
Space is converted to tab
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).
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;
};
Are you triying to do something like this?: https://github.com/wikunia/brackets-funcdocr
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.
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