先前分配的崇高文字3代码段变量

问题描述 投票:3回答:3

我最近尝试调整为升华文本3,而不是过去几年用于网络开发的netbeans,我真的很喜欢netbeans IDE中的功能,尤其是等效于sublime片段的代码模板,不幸的是,我不是'无法像在netbeans代码模板中那样从上一次分配中找到变量。

这是我在netbeans中使用的代码模板

error_reporting(E_ALL);
ini_set('display_errors', '1');
echo '<pre style="background: black;color: white; font-size:16px; font-wheight:bold; direction:ltr!important;text-align: left;">';
print_r(${VARIABLE variableFromPreviousAssignment default="$variable"});
echo '</pre>';
die();

这是我在崇高文字3中使用的代码段

<snippet>
    <content><![CDATA[
error_reporting(E_ALL);
ini_set('display_errors', '1');
echo '<pre>';
echo print_r(${1:*});
echo '</pre>';
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>dbg</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
    <description>dbug snippet</description>
</snippet>

简单来说,我正在寻找的是等效于netbeans的等同物

(${VARIABLE variableFromPreviousAssignment default="$variable"}
php netbeans sublimetext code-snippets
3个回答
1
投票

我将您的代码段更改为您在Netbeans快捷方式中输入的文本:


0
投票

忘记丑陋的print_r代码,使用dBug库。


0
投票

在菜单栏上打开首选项->键绑定

© www.soinside.com 2019 - 2024. All rights reserved.