Answer the question
In order to leave comments, you need to log in
Code autocomplete when opening documents in Sublime-text
Good morning. Can anyone suggest how, in the form of configs, a plugin, or in other ways, to implement the function "autocomplete with the initial code a file opened in sublime-text". That is, if you create a .html file, it will contain a set of tags like ...
When creating a .php file, it will be filled with <?php ... ?>, etc.
I apologize for the selection of hubs, I did not know where to shove.
Answer the question
In order to leave comments, you need to log in
In general, I decided to use snippets, ala:
<source lang="html">
</source><snippet>
<content><![CDATA[
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>${1}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- css -->
<link rel="stylesheet" href="./css/${2}.css">
<link rel="shortcut icon" href="./img/favicon.ico">
</head>
<body>
<!-- headbar -->
<div class="header">
</div>
<!-- content -->
<div class="content">
<hr>
<footer class="footer">
</footer>
</div>
</body>
</html>
]]></content>
<tabTrigger>html</tabTrigger>
</snippet>
Not what I wanted, but also an option. And together with the AdvancedNewFile plugin, almost perfect.
I can’t give pluses, so thanks to everyone for the answers =)
In my opinion, it's easier like this :
Alt
++
index.html
!Cmd
N
Enter
Tab
if I'm not mistaken - then you can only do auto-completion ala - enter "<?", we get <? php ... ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question