You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have seen some issues talking about snippets and indentation, but they are edge cases where spaces and tabs are working, but the line after the snippet doesn't indent or something similar, not about or \t not working out the box.
When running a snippet, spaces and/or tabs are not output. For example the below snippet:
Produces the below PHP code where there is no indentation at all.
<?phpdeclare(strict_types=1);
namespaceTests;
useTests\TestCase;
useTests\Traits\ShouldNotUseDatabase;
class Test extends TestCase
{
use ShouldNotUseDatabase;
publicfunctiontest(): void
{
}
}
Another nice to have would be that the snippet adheres to the tab stop that it was run on. Every time I run a snippet when tabed in it will remove any indentation and put the snippet against the left side.
Check for existing issues
Describe the bug / provide steps to reproduce it
I have seen some issues talking about snippets and indentation, but they are edge cases where spaces and tabs are working, but the line after the snippet doesn't indent or something similar, not about
or
\t
not working out the box.When running a snippet, spaces and/or tabs are not output. For example the below snippet:
Produces the below PHP code where there is no indentation at all.
Another nice to have would be that the snippet adheres to the tab stop that it was run on. Every time I run a snippet when tabed in it will remove any indentation and put the snippet against the left side.
Environment
Zed: v0.147.2 (Zed Preview)
OS: macOS 14.5.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
snippets.mp4
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: