sublime text understanding vintage mode

Every editor includes plugin for the development, that triggers set of activities and default packages. Sublime Text editor includes a feature for developing your own customized plugin. This chapter discusses in detail about developing your own plugin in Sublime Text.

Developing Plugin

The following steps show you in detail how to develop a plugin in Sublime Text −

Step 1 − Select the New Plugin option by navigating through Tools → Developer → New Plugin as shown below −

Developing Plugin step1

Step 2 − The basic code of a plugin includes import of two main libraries: sublime and sublime_plugin.

Developing Plugin step2

The code for the plugin is −

import sublime
import sublime_plugin
class ExampleCommand(sublime_plugin.TextCommand):
   def run(self, edit):
      self.view.insert(edit, 0, "Hello, World!")

Step 3 − The customized plugins are saved in Packages → User folder. Refer to the following screenshot that gives you the complete understanding of the plugins saved in Sublime Text editor.

Developing Plugin step3

Running the plugin

When you have created a plugin and saved it, open the console using the shortcut key Ctrl+` on Windows and Cmd+` on OSX, and execute the command shown here −


Font settings of Sublime Running the plugin

This command will execute the plugin defined by the user with the list of activities included in it.

Table of Contents
1.sublime text tutorial

2.sublime text introduction

3.sublime text installation

4.sublime text data directory

5.sublime text creating first document

6.sublime text editing first text document

7.sublime text patterns of code editing

8.sublime text sublime linter

9.sublime text shortcuts

10.sublime text snippets

11.sublime text macros

12.sublime text key bindings

13.sublime text column selection

14.sublime text indentation

15.sublime text base settings

16.sublime text theme management

17.sublime text understanding vintage mode

18.sublime text vintage commands

19.sublime text testing javascript

20.sublime text testing python code

21.sublime text spell check

22.sublime text packages

23.sublime text menus

24.sublime text sub menus of font

25.sublime text developing plugin

26.sublime text command palette

27.sublime text debugging php application

28.sublime text debugging javascript application

29.sublime text batch processing

30.sublime text distraction free mode

31.sublime text sublimecodeintel plugin

32.sublime text quick guide

33.sublime text useful resources

34.discuss sublime text

Leave a Reply

Your email address will not be published. Required fields are marked *