sublime-text-plugin

Sublime Text - Goto line and column

此生再无相见时 提交于 2019-12-03 05:30:29
问题 Currently, the Go to line shortcut (CTRL+G in windows/linux) only allows to navigate to a specific line. It would be nice to optionally allow the column number to be specified after comma, e.g. :30,11 to go to line 30, column 11 Is there any plugin or custom script to achieve this? 回答1: Update 3 This is now part of Sublime Text 3 starting in build number 3080: Goto Anything supports :line:col syntax in addition to :line For example, you can use :30:11 to go to line 30, column 11. Update 1 -

Sublime Text - Goto line and column

十年热恋 提交于 2019-12-02 18:48:10
Currently, the Go to line shortcut (CTRL+G in windows/linux) only allows to navigate to a specific line. It would be nice to optionally allow the column number to be specified after comma, e.g. :30,11 to go to line 30, column 11 Is there any plugin or custom script to achieve this? Bill Stidham Update 3 This is now part of Sublime Text 3 starting in build number 3080: Goto Anything supports :line:col syntax in addition to :line For example, you can use :30:11 to go to line 30, column 11. Update 1 - outdated I just realized you've tagged this as sublime-text-3 and I'm using 2. It may work for

Eslint: How to disable “unexpected console statement” in Node.js?

雨燕双飞 提交于 2019-12-02 15:40:33
I'm using eslint with Sublime Text 3 and I am writing gulpfile.js . /*eslint-env node*/ var gulp = require('gulp'); gulp.task('default', function(){ console.log('default task'); }); But eslint keeps showing error : "Error: Unexpected console statement. (no-console)" I found official document here , but I still don't know how to disable it. /*eslint-env node*/ var gulp = require('gulp'); /*eslint no-console: 2*/ gulp.task('default', function(){ console.log('default task'); }); doesn't work, either. My Sublime Text 3 plugins: SublimeLinter and SublimeLinter-contrib-eslint. Here's my .eslintrc.js

Comparing the contents of two files in Sublime Text

て烟熏妆下的殇ゞ 提交于 2019-12-02 13:47:07
I have two cloned repositories of two very similar open-source projects, which I have been working on in different instances in Sublime Text 2 to arrive at my desired result. Code from both of these projects was used. I have been using Git as version control for my project, but have not included the original projects. Thus, I would like to be able to quickly compare the contents of two files of the original project and compare the differences between them and my project. I was hoping that Sublime Text 2 would have a "Compare File" feature, but I can't seem to find anything related to it in the

How can I access python shell in sublime text 3? [duplicate]

和自甴很熟 提交于 2019-12-02 10:43:17
问题 This question already has an answer here : Issue with Sublime Text 3's build system - can't get input from running program [duplicate] (1 answer) Closed 3 years ago . Is it possible to set up sublime text for full stack python development. By this, I mean the following: 1. python shell where I can input an expression and instantly get the result, 2. the shell will work for the 'input' method, which will prompt the user to enter data. I have installed the theme and color scheme, but the

How can I change tab name in Sublime Text?

我怕爱的太早我们不能终老 提交于 2019-12-01 04:10:16
Is it possible to change tab names for files with strange names? They can not be renamed on disk but it is difficult to keep up with mad file names in Sublime :D In the ST console, enter view.set_name("My changed name") , replacing the content of the string with the name you want. You can also create a plugin to do this, again using the view#set_name api method. 来源: https://stackoverflow.com/questions/23288789/how-can-i-change-tab-name-in-sublime-text

Set my own syntax in Sublime Text

两盒软妹~` 提交于 2019-12-01 00:48:35
Sometimes I use Sublime Text for writing reminders. I always use the same layout for this task which looks like this : >Title >>Subtitle >>>Comment > Title >> ... Where a > represent a tab character So I'm wondering if it's possible to create my own syntax highlighting for this kinds of files, with one color for the title, another one for the subtitle and the regular color for the comment. Syntax highlighting is performed using .tmLanguage syntax definitions . They are formatted in Apple's XML-based PLIST format, although thanks to the excellent Sublime plugin PackageDev they can be written in

In sublime, why is def run working in one case and not another case, and how can I make it work?

核能气质少年 提交于 2019-11-30 18:35:40
问题 I have a class blahtestCommand(sublime_plugin.ApplicationCommand) with a run, it fails. Another class, I have with sublime_plugin.TextCommmand) works. I am a little bit baffled with what the run definition should look like. I know java(did some OOP programming 10 years ago which I remember well), but I know very little python. (so I don't quite get about a class taking a parameter, as it wasn't in java but i'd make a weak guess it's a bit like 'extends'-inheritance- or 'implements'). I'm also

Merging files in Sublime with Sublimerge via command line

白昼怎懂夜的黑 提交于 2019-11-30 12:24:09
I'm trying to find a better merge file option and wanted to try out Sublime as of my work is done using it. so I installed Sublimerge and now am stuck. I know I can compare two already open files or compare via the Sidebar but what I want to do is fire it off via the command line so I can kick it off from our source control program like I can with every other merge tool I've seen. Does anyone know the command line format to do this? N.B. - I've long since given up trying to use sublime to handle merges and instead switched to other tools to handle this. Therefore I've never felt I can accept

How to integrate Sublime Text with GitHub?

别说谁变了你拦得住时间么 提交于 2019-11-30 11:50:00
问题 I thought it would be perfect if ST would have a plugin for syncing repo with the one on GitHub account, but I can't find such a thing. There is Github Tools and sublime-github but they don't provide commit or push commands. I can always use GitHub's app for syncing but plugin is more convenient, since it can be assigned to ST's hotkeys. 回答1: There are numerous git plugins available via Package Control, so all you have to do is browse through them, read the READMEs, and decide if you want to