sublimetext3

Sublime Text 3 build system: keep console running

馋奶兔 提交于 2019-12-03 10:14:40
问题 I set up a build system in Sublime Text 3 to run Matlab files. This works really fine: { "cmd": ["/usr/local/MATLAB/R2013b/bin/matlab", "-nosplash", "-nodesktop", "-nojvm", "-r \"run('$file');\""] } The problem is I want to keep Matlab running in the Sublime console after $file is executed. Is this possible? Thank you in advance. 回答1: Ok, I've finally found a solution that runs the build system in an external xterm terminal. If you use this Sublime will open a xterm window and execute the

How to navigate between instances of selected text in Sublime Text 3?

浪子不回头ぞ 提交于 2019-12-03 08:53:58
问题 Sublime Text 3 highlights all instances of currently selected text. Is there any shortcut to navigate cursor to the next / previous instance (copy) of selected text? So far, I've only managed to find out some information about adding more instances to current selection (expanding it) with Ctrl + D , skipping current instance ( Ctrl + K , Ctrl + D ) and deselecting it ( Ctrl + U ), which actually is a soft undo, not a real command. I can use Ctrl + D to go to next instance of selected text and

How do I run python 3.5 in Sublime Text 3

梦想与她 提交于 2019-12-03 08:52:11
I have installed the python 3.5 interpretor in my device (Windows). Can anybody guide me through the process of using packages to run it like SublimeREPL ? MattDMo Yes, you can use any Python version you want to run programs from Sublime - you just need to define a new build system . Select Tools -> Build System -> New Build System , then delete its contents and replace it with: { "cmd": ["C:/Python35/python.exe", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } assuming that C:/Python35/python.exe is the correct path. If python.exe resides

How to show result of python script in a console when running from ST editor?

只愿长相守 提交于 2019-12-03 07:14:47
I'm new to Sublime Text so am unfamiliar with its internals so far. From what I could tell the problem could be something related to this . I have a python script var = raw_input("Enter something: ") print "You entered ", var which asks for input, waits for it, then prints it out in windows console prompt. How do I make ST3 upon "building" to show the results in a console window? It's really simple just issue a command to start a new cmd.exe . start cmd /K python main.py See here for more(ancient) The /k flag "pipes" the other commands to cmd.exe and runs until you exit the shell yourself,

How to run command on save in Sublime Text 3?

 ̄綄美尐妖づ 提交于 2019-12-03 06:52:10
Sublime Text offers built-in commands, such as paste , new_window , toggle_comment etc. In addition, some plugins offer their own commands that can be used for key binding. Can I force any of these commands to be ran on file save? The reason I need is because I'd like to run CSScomb on file save instead of / in addition to having key binding for it. The command name is css_comb . sergioFC Sublime-hooks package allows you to run packages based on event (on new, on save, etc.), so you can use it to achieve your goal. Just add this code to CSS syntax settings: "on_pre_save_language": [ { "command

syntax highlighting for react code in sublime

时间秒杀一切 提交于 2019-12-03 06:13:31
问题 I'm started writing some basic React code in sublime text. Here is what my syntax highlighting looks like. Its partly highlighted. Is there any suggested sublime plugin i can use to see a complete syntax highlight? import React, { Component } from 'react' import { connect } from 'react-redux' // <-- is the glue between react and redux import { bindActionCreators } from 'redux' import { selectBook } from '../actions/index' // there is no intrinsic connection between React and Redux // they are

Showing menu bar in sublime-text 3

无人久伴 提交于 2019-12-03 06:12:49
I am using Ubuntu 12.04 LTS and I got the Sublime Text editor from here.... http://sublimetext.com/3 I've googled this a lot and even after doing Alt + V I don't see an option to 'Show Menu'. Here is a section of my .config/sublime-text-3/Local/Session.sublime_session : "menu_visible": true, "output.find_results": { "height": 0.0 }, and "distraction_free": { "menu_visible": true, "show_minimap": false, "show_open_files": false, "show_tabs": false, "side_bar_visible": false, "status_bar_visible": false }, But I can see the menu bar neither in default state nor in Distraction Free mode I'm at a

Where does sublime store themes?

拟墨画扇 提交于 2019-12-03 05:57:16
问题 I've installed itg.flat for sublime via the package manager. I'm wanting to make a few edits to theme but I can't find where package manager has installed the theme files. I'm using ST3 on OS X Mavericks I've had a look around the net but haven't found anything relating specifically to what I'm after so a SO thread is a last resort. 回答1: Sublime Text 3 packages installed via Package Control are by default stored as .sublime-package zip files in your Packages directory, whose location depends

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 -

Double click highlight variable Sublime Text 3 include $

别来无恙 提交于 2019-12-03 05:17:18
I wanted ST3 to include the "$" when selecting PHP files so I edited word_separators by removing $ as such : "word_separators": "./\\()\"':,.;<>~!@#%^&*|+=[]{}`~?" And now it highlight the whole varibale including the "$" when double clicking a variable. However, now Sublime is not matching/outlining those variables using the default match_selection functionality. Any thoughts on this? Is there a setting I am missing. Much appreciated. MattDMo Please see my answer to this question for an in-depth look at the effect of changing word_separators and various find and select options. Long story