【问题标题】:Visual Studio Snippets with subString variable带有 subString 变量的 Visual Studio 代码段
【发布时间】:2012-09-06 19:54:33
【问题描述】:

我正在尝试设置一个环境以在 VS2010 中使用 SenchaTouch,并且我正在使用 Snippet Designer 编写一些 Snippets。 我想知道是否有人可以向我解释如何使变量成为字符串的一部分: 例如:

Ext.define("NotesApp.controller.Notes",

我希望用户能够编辑 Notes 名称和 NotesApp 名称,但不更改“.controller”)

【问题讨论】:

    标签: visual-studio-2010 code-snippets


    【解决方案1】:

    经过一番研究,比我想象的要容易(sn-ps基本),第一次太懒了:

    Ext.define("$appli$.controller.$control$", {
    
        extend: "Ext.app.Controller",
        config: {
            refs: {            
               // firstView: "firstView",
               // secondView: "secondView"
            },
    
        // Remainder of the controller’s code 
    
    });
    

    【讨论】:

      猜你喜欢
      • 2021-05-29
      • 1970-01-01
      • 2019-06-23
      • 2014-03-27
      • 1970-01-01
      • 2020-09-07
      • 1970-01-01
      • 2015-11-14
      相关资源
      最近更新 更多