sublimetext3

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

Highlight the jQuery $ variable in Sublime Text 3 (build 3103)

风流意气都作罢 提交于 2019-12-02 18:08:11
问题 In Feb 2016, the update to build 3103 broke a custom theme of mine, mostly in regard to Javascript. I really miss the ability to target the $, it seems that it's now under the scope: meta.function-call.with-arguments.js variable.function.js when modifying the theme. I want to know if there's a way to bypass or over-rule the $ sign, perhaps some REGEX or a way to add scope into the .tmLanguage file, so that I may color it differently from other "variable functions". 回答1: Until the unpaid/non

How to remove the Windows PATH from a Sublime Text 3 Python build error?

流过昼夜 提交于 2019-12-02 17:48:33
I am using Python 3 on Sublime Text 3 (win8.1 64bit). When I write some code and then build, if there is an error, the Windows PATH is displayed as part of the error. How do I remove the Windows PATH on Sublime Text 3 output when there is an error? I wont to remove ==> I want to erase. This behavior can be changed by commenting out four specific lines in Packages/Default/exec.py , which is the system file that runs build systems by default. First, you'll need to install PackageResourceViewer from Package Control. Next, open the Command Palette with Ctrl Shift P and type in prv to bring up the

Open files and folders in same window in Sublime Text

隐身守侯 提交于 2019-12-02 17:24:59
If I open ~/foo.txt then open ~/baz/bar.txt from Terminal, Sublime Text always opens 2 different windows. It's aggravating to have all these different windows open.. I've tried changing a bunch of ST's settings, but nothing seems to fix this. Is there a way to have ALL files and folders just open up in the same window as if I were manually adding all these folders to the project? In Sublime Text Menu: Preferences -> Settings - User Look for ' open_files_in_new_window ' And change ' true' with ' false ' Rather than editing the SublimeText default settings (as Jahnux73 suggested), you should go

Sublime text 3. How to edit multiple lines? [duplicate]

与世无争的帅哥 提交于 2019-12-02 17:02:08
This question already has an answer here: Sublime Text 2 multiple line edit 9 answers I was using Notepad++ and now I want to use the same cool features in Sublime but I don't know how. I want to edit multiple lines at the same time like this: But I don't want to Ctrl+Click at each line for this. I want to click at first line and click at last line for one vertical line. How I can do this? callmebob Select multiple lines by clicking first line then holding shift and clicking last line. Then press: CTRL + SHIFT + L or on MAC: CMD + SHIFT + L (as per comments) Alternatively you can select lines

use conda environment in sublime text 3

烂漫一生 提交于 2019-12-02 16:43:52
Using Sublime Text 3, how can I build a python file using a conda environment that I've created as in http://conda.pydata.org/docs/using/envs.html A standard Python .sublime-build file looks like this: { "cmd": ["/path/to/python", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } All you need to do to use a particular conda environment is modify the path to the python or python3 executable within the environment. To find it, activate your environment and type which python or which python3 (depending on the version you're using), then copy the

How to change background and text colors in Sublime Text 3

烈酒焚心 提交于 2019-12-02 16:09:52
My questions are: How do I change the overall colors (background and font)? How do I change the colors based on the file type that is open? Do I need to learn how to create a whole theme? I read this answer -- Sublime 2 -changing background color based on file type? -- for Sublime 2, but I'm using Sublime 3 (currently in beta), and there is no "Color Scheme - Default" in the Package folder. For How do I change the overall colors (background and font)? For MAC : goto Sublime text -> Preferences -> color scheme Luke This question -- Why do Sublime Text 3 Themes not affect the sidebar? -- helped

RuboCop: Line is too long <— How to Ignore

好久不见. 提交于 2019-12-02 15:42:04
I just added RuboCop to a rails project and installed the Sublime package to see RuboCop suggestions in the editor. I'm trying to figure out how to change the maximum line length from 80 characters, or just ignore the rule completely. Currently in use: RuboCop (gem) Sublime RuboCop SublimeLinter-rubocop In your code, you can disable a bunch of lines like this: # rubocop:disable LineLength puts "This line is lonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnng" # rubocop:enable LineLength Or add this to your .rubocop.yml file to increase the

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

Sublime Text wrap selection with snippet

别等时光非礼了梦想. 提交于 2019-12-02 15:29:49
I've been digging into Sublime's snippets, plugins and macros, but I can't seem to find what I'm looking for. I'm trying to turn this: .content { color: @blue; } Into this: .content { color: darken(@blue, 5%); } Ideally, I'd be able to select the @blue part, hit a command, and wrap the whole thing properly. Any ideas? Is this even possible? Sergey Telshevsky As can be seen here : Tools -> New Snippet... -> save as darken.sublime-snippet in Data\Packages\User\ <snippet> <content><![CDATA[darken($SELECTION, 5%);]]></content> <!-- Optional: Tab trigger to activate the snippet --> <tabTrigger