Sublime Forum

Stop Auto Insert of Perl Snippet on Tab

#1

Hi,

I’m trying to turn off the auto-insertion of Perl code snippets when pressing tab after certain words.

For example, pressing tab after the word “test” inserts the following code:

#!/usr/bin/perl -w

use strict;
use Test::More tests => 1;
use ModuleName;

ok(assertion);

This is really annoying and I can’t seem to find a way to turn it off.
I have tried the following settings, but with no effect.

"auto_complete": false,
"auto_complete_commit_on_tab": false,
"tab_completion": false,

Can anyone offer any suggestions?

JP

0 Likes

#2

This snippet is provided by the following snippet at Perl/Snippets/Test.sublime-snippet:

<snippet>
	<content><![CDATA[#!/usr/bin/perl -w

use strict;
use Test::More tests => ${1:1};
use ${2:ModuleName};

ok(${3:assertion});
]]></content>
	<tabTrigger>test</tabTrigger>
	<scope>source.perl</scope>
	<description>Test</description>
</snippet>

The easiest way to deactivate is to open it with PackageResourceViewer and remove the tabTrigger.

0 Likes

#3

That works!
Thanks

0 Likes