编写自定义落成的崇高文字2 [英] Writing custom completions in Sublime Text 2

查看:100
本文介绍了编写自定义落成的崇高文字2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

崇高文字2附带了常用的成语很多内置的完井/模板。在C ++中,这其中就包括与田等循环 - 如果我写了 VEC 和pressed标签,这将扩大到的std ::矢量&lt ;场>伏; 其中字段是一个可写域。许多这些都写在我不喜欢或不提供的东西,我想他们的样式,以及一些我想要使用不存在。有没有修改这些内置的完工,写的方式我自己?

Sublime Text 2 comes with many built-in completions/templates for common idioms. In C++, these include for loops with fields, etc - if I wrote vec and pressed tab, it would expand to std::vector<field> v; where field is a writeable field. Many of these are written in a style that I do not like or do not provide things that I would like them to, and some that I want to use do not exist. Is there a way to modify these built-in "completions" and write my own?

推荐答案

我相信你正在寻找定制的片段的。

I believe you're looking to customize the snippets.

转到 preferences - > 浏览套餐 - > C ++ 并让你需要的任何改变:)

Go to Preferences --> Browse Packages --> C++ and make whatever changes you need :)

这篇关于编写自定义落成的崇高文字2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆