FAQ Database Discussion Community


AutoHotkey script for toggling Sublime Text 3 sidebar or is there a native ST setting?

sublimetext,sublimetext3,autohotkey
I'm trying to write an AutoHotkey script for toggling Sublime Text 3's sidebar. Here's what I have so far: ; Custom Script for Sublime Text 3 ; Map 'F10' key to Control+k, Control+b (open/close sidebar) ; If in Sublime Text #IfWinActive ahk_class PX_WINDOW_CLASS F10:: Send {Ctrl down} SetKeyDelay -1 Send...

SublimeREPL and IPython

python,ipython,sublimetext3,sublimerepl
I fail when I tried to use IPython with SublimeREPL. My setup is: - Windows 8.1 - Sublime Text 3 - C:\Python34 - C:\Python27 - C:\Anaconda3\Scripts -> Here it's where Ipython is My PYTHONPATH and PATH are correct and I wrote in SublimeREPL settings - User: { "default_extend_env": {"PATH": "{PATH};C\\Anaconda3\\Scripts"}...

xdebug ignoring error suppression - scream not installed

sublimetext3,xdebug
I have xdebug installed and am developing using Sublimetext 3 on a Ubuntu 14.10 laptop. My issue is with errors that are suppressed using @ symbol being parsed by xdebug. So any autoloaders in my neat mvc architecture means that I have to press the run shortcut keys repeatedly to...

How to exclude some directory during search(through ctrl+shift+f) in sublime 2?

python,sublimetext2,sublimetext3,sublimetext
I want to exclude some directory like .venv/lib/python2.7/ from the search result during the search for specific keyword, I don't want the result which come from the above directory, Suppose I want to search keyword "subtitle", I will press ctrl+shift+f then in Find : field I will write subtitle, but...

Sublime Text 3 Hides scrollbars

sublimetext3
I would prefer to always see the scroll-bars in Sublime Text 3. The current behavior is for them to remain hidden until you start scrolling. Is there a setting I can change to make it behave this way? Is it part of the theme? Right now I am making the...

Coda like “CSS Selector List” for sublime

ide,css-selectors,sublimetext2,sublimetext3,sublime-text-plugin
Coda looks like an effective text editor however I am on Windows. The splash page for Coda has an animated gif/iframe that shows off Coda, there is a panel that slides out from the right, listing all of the CSS selectors used in order. Does Sublime offer said functionality in...

Sublime text: How to do sentence case (capitalize the first letter of a sentence)

sublimetext2,sublimetext,sublimetext3
I'm aware that there is Edit > Change Case menu. But there's no option for sentence case. How do I achieve this? Is this possible for regex to achieve this?...

Regex for variable name before period in Sublime Text snippet

regex,sublimetext3,sublimetext
So I'm trying to write a snippet for Sublime Text 3 for forEach statements called on Objects. //what I have written at the point where the snippet is triggered myObject.forEa // what should appear after triggering the snippet Array.prototype.forEach.call(myObject, function(){ }) The problem here is to capture myObject in the...

Data Link Escapes and Other Nonprintable Characters

coldfusion,sublimetext3,control-characters
In a while going through a .cfc file with a sublime text editor, I noticed that 3 characters in a string were highlighted. These characters were "DLE", and the group was treated as one character. I cannot highlight one without highlighting all of them. After doing some research, I believe...

Hotkey for running command

sublimetext3
I want to create a keyboard shortcut in Sublime Text 3. The command I want to run is something like this: [make.sublime-build] { "name": "boot-dev-svr", "cmd": ["java","-jar","D:\\prg\\boot\\boot-1.1.1.jar","development"], "working_dir": "D:/smx", "path": "C:/Windows/System32", } The key I want to map this action to is F5: [Default (Windows).sublime-keymap - User] [ { "keys":...

Sublime Text: set language for each file

sublimetext3,sublimetext
In Sublime Text (3), I can select the dictionary to use for spell checking. However, this setting seems to be global rather than on a per-file basis. This is annoying when I'm working on multiple files that use different languages. How can I achieve that Sublime Text remembers what dictionary...

Sublime Text 3: Find my cursor after scrolling?

editor,sublimetext3
So, while using Sublime Text 3, I often find myself scrolling through a file looking for some function, but then wishing to return my viewport to wherever I left my cursor. Unfortunately, I frequently have no idea where I left the cursor and I end up having to scroll endlessly...

How to delete everything to the right of selected text in Sublime Text 3 ?

sublimetext,sublimetext3,sublime-text-plugin
I am not sure if this possible. I am just checking to see if it is. Is there a way to delete everything to the right of whatever I select in Sublime Text ? ...

Can't open folder that was dragged and dropped to sidebar in sublime text3

windows,sublimetext3,sidebar
I recently downloaded sublime text3. To get started I dragged and dropped a folder that contained a website to the sidebar. Now I can't open the folder to get to the files. I can't drag the folder back to the desktop either. The only thing I can do is drag...

Markdown syntax highlighting not working as expected

javascript,markdown,syntax-highlighting,sublimetext,sublimetext3
In Sublime Text 3 I am using the package Markdown Extended and Markdown Preview to build the Markdown documents I write. I am trying to get nicely formatted JavaScript code, however, for some reason it isn't being built and displayed correctly. In Sublime, the code is highlighted and looks great,...

Package Manager not in Sublime Text 3

sublimetext3,package-control
I had originally used the code given at https://packagecontrol.io/installation to install package manager when I upgraded to Sublime 3. Now although the Package Control.sublime-package file is in Installed Packages, there is no way for me to access package manager (i.e. Ctrl + Shift + P) doesn't give it as an...

ST3: insert same character till end of line

sublimetext3
Is there a way to insert the same character till the end of the line in Sublime Text 3? I would like to use this feature to structure my code by comments. E.g. when coding in R I may want to have a comment "Load file" where the dashes go...

How to pass args to an instance of sublime_plugin.WindowCommand?

python,sublimetext3,sublime-text-plugin
I create a plug-in for sublime text 3, the designed Command Palette.sublime-commands is as follows: [ { "caption": "Function 1", "args": {parameter:"y"}, "command": "generalfunc" }, { "caption": "Function 2", "args": {parameter:"n"}, "command": "generalfunc" } ] actually, I want to pass the args to the sublime_plugin instance below: class GeneralFuncCommand(sublime_plugin.WindowCommand): def...

Sublime Text 3 macro to open all files of certain type make some changes and save them?

sublimetext3
I need to perform certain actions to each file and doing it manually would take a lot of time as there are manny files. Automating this somehow would be very helpful. Can this be done with Sublime Text 3? ...

Show C build results in Linux terminal with Sublime Text 3

c,sublimetext3,gnome-terminal
I'm using Sublime Text 3 for C programming. I want to compile and run my programs in the gnome terminal using a keybinding or something like that instead of the ST3 console (like CodeBlocks does). How can I do it?

SublimeText 3 - Package Control: Removed directory for orphaned package ColdFusion

coldfusion,sublimetext3,sublimetext,sublime-text-plugin
I am running SublimeText 3 (build 3083). I follow the manual install directions for the ColdFusion plugin as described here (https://github.com/SublimeText/ColdFusion): Download Manually Download the files using the GitHub .zip download option Unzip the files and rename the folder to ColdFusion Copy the folder to your Sublime Text 2 Packages...

Proper syntax highlighting in Sublime 3 for a file written in several languages

syntax-highlighting,sublimetext3
I am editing e.g. shell scripts with here-documents in other languages (awk, python, R, JavaScript, you name it). Sublime 3 guesses the overall syntax but doesn't do that for the included here-document. How can I prod Sublime in the requisite direction, e.g. by placing any special comments in the code...

Environment variable only works in windows command prompt when i run it “start in %HOMEDRIVE%%HOMEPATH%” [closed]

windows,sublimetext3,command-prompt
I am trying to add the Sublime Text directory to environment variable PATH so I can start Sublime from cmd in Windows 7 easily. But, it is not working when I start cmd without doing this... Opening this shortcut makes all Sublime available in command line... However if I start...

Is it possible to show image in Sublime Text 3 output panel?

python,sublimetext3,sublime-text-plugin
I am writing a sublime text 3 plugin. I have an image (PNG format). I would like to load this image into Sublime Text 3 custom output panel, to show it as a preview. Does anyone have idea how to do this or is it even possible?

Change Sublime Text 3 Bracket/Indent Rules

sublimetext,sublimetext3,brackets,curly-braces
In Sublime Text 3, I want to change auto bracket rules. By default, I get this class extends Parent implements Interface { } but I want this class extends Parent implements Interface { } how can I accomplish this....

What sets the left file pane margin for Sublime Text 3 UI themes?

user-interface,themes,sublimetext3
I'm using the Soda Dark UI theme for Sublime Text 3 and I'd like to increae the left margin within the pane. It looks too tight, to me. What class(s) is used to define that margin? ...

Using pure Python over grep?

python,grep,sublimetext3
I am not familiar with grep as I've always been on a Windows system so when someone suggested I add these lines to my code, I'm a little confused... grep = 'grep -E \'@import.*{}\' * -l'.format(name) proc = Popen(grep, shell=True, cwd=info['path'], stdout=PIPE, stderr=PIPE) From my understanding, this is trying to...

Context-sensitive help on selected word in Sublime Text?

sublimetext,sublimetext3
Is there any way, in Sublime Text, to get help about the currently highlighted keyword? For example, I select the word "file_get_contents", I press F1, and the PHP help page, http://php.net/manual/en/function.file-get-contents.php, opens in a browser. Is it possible to do this? I doesn't seem to be built-in and I couldn't...

Sublime3, ruby programming, autocomplete - show a class' methods (like java, actually)

ruby,autocomplete,sublimetext3
I am new to Sublime and to Ruby. I have been developing Java for 10+ years, and what I miss, is: autocomplete, in the meaning of: using: Sublime3 (ok if had to switch to 2 to get this option) + Rails. issue: I want: I type: "MyClass. [DOT]" say: I...

Sublime Text SFTP with SecurID authentication

sublimetext2,sftp,sublimetext3
Sublime Text's SFTP works perfect with my work flow. I develop on my local computer, compile it on remote host mapped using sublime SFTP. However, the new machine I'm working on uses SecurID for identification and Sublime's SFTP fails to connect. How do I solve this problem?...

Sublime API missing

python,sublimetext,sublimetext3,fedora
I try to install 'Sublime Text 3' on Fedora 21 from official site, but when I execute "sublime.py" it says: Traceback (most recent call last): File "sublime.py", line 1, in <module> import sublime_api ImportError: No module named sublime_api but in "sublime.py" has: import sublime_api ...

Sublime indentation on per file basis

sublimetext,sublimetext3,indentation
Using Sublime Text 3. When opening files, some of them have indentation of 2 spaces (while the majority have 4 spaces). Is there any way to set indentation on per file basis?...

Sublime only opens in Sublimerge view

view,merge,diff,sublimetext3,restore
I have the plugin Sublimerge installed in Sublime Text 3. In order to compare two files Sublimerge opens a new window (but without any menu). That is fine since the original Sublime window is still there. Unfortunately the diff-window was the last one I closed and when I restart Sublime...

How should I create a build system that can take STDIN in Sublime Text 3 under OSX? [duplicate]

c++,osx,sublimetext3
This question already has an answer here: Sublime Text with console input for c++ programs 2 answers I'm trying to build a single C++ file that can take STDIN after building so I can test some single examples and see whether the code work. But it seems the default...

how to set Sublime Text to default preference?

sublimetext3
I would like to remove all changes made to my preference and set all my preferences to default. Made some changes that I don't remember and would like to start from the default settings. I prefer not to uninstall my sublime and reinstall if there is an easy solution.

Sublime Text navigate to file in sidebar when opened with CTRL+P (“goto anything”)

sublimetext,sublimetext3
Say I've got opened a project or a directory structure in Sublime Text. When I open a file with CTRL+P, I frequently navigate in the sidebar to the directory that contains it after opening the file, to get my bearings in a large project. It would be nice if this...

How can I have autocomplete for python libraries in sublime

python,sublimetext3
Currently when I import some code, for example: from datetime import datetime I can't see what methods it has. How could I know that there is utcnow() for example. It would be great if there is some plugin for sublime so that I have this functionality , as it is...

Get all scope names on Sublime Text 3

python,sublimetext3,sublime-text-plugin
I am creating a plugin for ST3 and need the list of all defined scopes. I know that hitting ctrl+alt+shift+p shows the current scope in the status bar but I can't do it for every file extension. Edit: In addition to simple .tmLanguage files I am extracting the .sublime-package files...

Atom text editor remove trailing whitespace on save

save,whitespace,sublimetext3,removing-whitespace,atom-editor
I am switching from Sublime text to Atom text editor. I believe it is the right decision for me. However, something is bothering me. When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom text editor leaves a...

How to restore focus to quick panel after focusing some other group to open a file?

sublimetext3,sublimetext,sublime-text-plugin
Situation is like this: I am writing a plugin that needs to: Open quick panel On hover of first item, focus other group Open in that group Restore focus to quick panel input so I can move to next item in list and so on... I did solve 1-3 but...

Insert text into view in sublime 3 api

python,sublimetext3,sublime-text-plugin
I have 4 view in my sublime now. And I want to insert some text to one view. I am trying like this. but no luck. getAllViews = self.window.views() jobView = getAllViews[1] jobEdit = jobView.begin_edit() jobView.insert(jobEdit, 0, 'Hello') jobView.end_edit(jobEdit) Is there any better Idea to do this ? Updating my...

JQuery Mobile : navbar inside footer last element displaying incorrectly

html,jquery-mobile,sublimetext,sublimetext3,jquery-mobile-navbar
I'm using JQuery Mobile 1.4.5, and I have no custom CSS of any kind. Code: <div data-role="page" id="page-id"> ... <div data-role="footer" data-position="fixed" style="overflow:hidden;" data-hide-during-focus="false"> <div data-role="navbar">   <ul>    <li><a href="#" class="ui-btn-active">Navbar 1</a></li>    <li><a href="#">Navbar 2</a></li>    <li><a href="#">Navbar 3</a></li>   ...

How do I prevent Sublime Text 3 from auto-indenting a line as a one off

sublimetext2,sublimetext,sublimetext3
When I'm editing HTML or CSS in Sublime Text 3 the lines auto-indent when I hit the [ENTER] key, which generally is very useful. On occasion I find myself wanting to paste a line of markup which is already indented, and this results in double indentation. Is there some other...

Using virtualenv with Sublime Text 3 and SublimeREPL

python,virtualenv,sublimetext,sublimetext3,sublimerepl
I'm trying to setup ST3 to work with Python's virtualenv, running on Windows 8.1. I usually use SublimeREPL with my global Python install to run files. Now that I'm using venvs, though, I'm having trouble getting anything to run. Here's what I've been trying: I have a parent directory with...

Write Sublime Text 3 plugin to prepend text to selected block of text

sublimetext3,sublime-text-plugin
I am working on a Sublime Text 3 plugin to work with todo.txt todo files, which are flat text files. I am having trouble writing a plugin command that properly works on a selected region. I would like to be able to prepend the date (or an x) to a...

How can I apply basic html formatting to a sublime text syntax definition only within

syntax-highlighting,sublimetext,sublimetext3,definition
Ok so by the following yaml definition, shouldn't only what's in between {blah} and {!blah} get text.html.basic syntax highlighting? And the {blah} tags themselves take the highlighting of a comment? Unfortunately it's not happening that way. HTML highlighting is anywhere in the document, and {blah} doesn't get comment highlighting. #...

Gist plugin erroring out in Sublime Text 3

github,sublimetext3,sublime-text-plugin,gist
I'm using Sublime Text 3 on OSX Yosemite and installed the Gist plugin. I could not find the Gist.sublime-settings file via browse packages, so I just went to preferences and found it that way and entered in my Github username and password. This is the error I'm getting when I...

Sublime Text 3: Anaconda show lint errors hotkey?

sublimetext,sublimetext3
How do I add a hotkey to view lint errors? It shows me that there is an error, but doesn't tell me what it is. If I want to see the errors I have to right click -> Anaconda -> show error list which seems very inconvenient. I think it...

sublime 3 adds extra angular bracket on autocomplete

html,autocomplete,sublimetext3
I find on sublime 3 that if I autocomplete code I sometimes get an extra angular bracket. for example, If I start writing "<ht", I get an option to autocomplete the html tag, but the code produced looks like this: <<!DOCTYPE html> <!-- Extra angle bracket here --> <html> <head>...

File Dependent Key Bindings

keyboard-shortcuts,sublimetext,sublimetext3
I have added following piece of code to Preferences > Key Bindings - User configruation file in my Sublime Text 3: { "keys": ["ctrl+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>"} }, As a result, when user presses Ctrl+B in editor, current selection is surrounded with HTML tags <strong> and <strong>. Is...

ST3: sublimelinter-user settings ignored

python,settings,sublimetext3,sublimelinter
I change the "mark_style" using the menu command and it is still in underline more. I have installed pep8 linting, anaconda, gitgutter etc

How do I extract themes inside of Sublime text's cache, or where are sublime text color schemes located that have been cached?

sublimetext3
I'm on a mac. also, important to note, a file with a path segment of "Packages/Solarized Color Scheme/Solarized (Dark).tmTheme" does not exist anywhere on the filesystem. Sublime text has some sort of caching mechanism here that I don't understand. there is a cache folder, containing binary files that are named...

Key bindings for navigating through selection regions

sublimetext,sublimetext3
When you press Ctrl+F, enter some search query and click on Find All (or hit Alt+Enter), Sublime Text 3 will find and select all occurrences of searched term found in current document. It will even count then, writing X selection regions in status bar. I'd like to add a functionality,...

OmniSharp with Sublime Text does not seem to be running OmniSharpServer

autocomplete,sublimetext3,omnisharp
I'm trying to get ASP.NET MVC5 projects working within Sublime Text. I've installed both of the OmniSharp and Kulture sublime text plugins. However, it doesn't appear that the OmniSharp server is running, as I'm not able to get any meaningful auto-complete options. I've followed all of the steps in this...

How can I compress multiple lines of code into 1 line of code?

sublimetext,sublimetext3,sublime-text-plugin
I have many similar block of code like this : imgLoader({ img: $chImage, btn: $btnAssignment, imgPath: basePath + '04-Section Exercise/Assignment.png' }); I want to compress them into 1 line. imgLoader({ img: $chImage, btn: $btnAssignment, imgPath: basePath + '04-Section Exercise/Assignment.png' }); I did this one manually, and it takes me about...

Sublime Text Build Systems variables

sublimetext3
The docs for Sublime Text Build Systems state: you can use some variables in build systems too, as we have done above with $file, which expands to the active buffer’s filename. Are there more variables other than $file and if so where can I learn about them?...

Identation not working with EditorConfig Sublime Text 3

github,editor,sublimetext3,editorconfig
I am using EditorConfig in Sublime Text 3. I have set up the .editorconfig file in my project root directory and it was working fine few months ago. The indentations looks good in Sublime But when I push it to GitHub, the same code looks like this I removed the...

Sublime Text 3 - Lyte theme doesn't affect sidebar / tab view

themes,sublimetext,sublimetext3
The Lyte theme should not only change the way the code looks but the appearance of the sidebar and the tab view as well according to this readme. I installed it via Package Control, and it doesn't appear to be working for me: I restarted and reinstalled it several times,...

Why can't turn off the Sublime 3 updates notification by adding “update_check”:false in user setting file?

windows,editor,sublimetext3,text-editor
I want to turn off the Sublime 3 updates notification , so I o to Preferences -> Settings-User and edited it like this: { "auto_close_tags": true, "font_size": 18, "hot_exit": false, "remember_open_files": false, "show_encoding": true, "update_check": false } but it doesn't work....

Set custom hotkeys on indent/unindent in Sublime Text 3

sublimetext,sublimetext3,hotkeys
In VIM I'm using Shift+> and Shift+< for indent/unindent code blocks, but this shortcut doesn't works in my ST3 (Mac OS X preferences). How I can solve this issue? By default at preferences: { "keys": ["super+]"], "command": "indent" }, { "keys": ["super+["], "command": "unindent" }, And my preferences file contains...

Sublime 3 JS Snippets to Typescript

javascript,typescript,sublimetext3,code-snippets
I have a lot of useful snippets on JS. Like cl for console.log(); or fn for function methodName (arguments) { // body... } However I can't use them on *.ts files. How can manage the snippets and complation for js to ts also. Thanks...

Quote marks broken in Sublime Text Cobalt theme comments?

themes,sublimetext,sublimetext3
In Sublime Text 3 (Mac), I really like the Cobalt theme. However, the theme seems broken. When lines are commented out, the comments change quote marks. Double quotes become single; Single quotes disappear altogether: This is the same window, using the Monokai theme: So: How might I fix this locally...

Regex command to insert character into column

regex,sublimetext3
I have a text file organized into columns that looks like this: # v Col 50 EE84 1484.74 1364.99 62.5 2 1 0 1 EE85 505.23 841.63 60. 2 1 0 1 EE86 945.95 913.39 100. 1 0 0 0 P3 972.44 1126.12 100. 1 0 0 0 P28 980.0...

Sublime - expand selection only to matches

linux,sublimetext3,gnome
Sublime-Text-3 Expands the selection in a weird manner.I have the following Code-Snippet: appName = "Weired Application" for i in appName: print i When i select i and want to expand selection to the next occurrence, it will select the i of the word in. How can i expand selections only...

Trigger trailing white space on demand on Sublime text 3

python,sublimetext,sublimetext3
Related with the third answer from this question, I would like to refactor this simple plugin so that it works with Sublime Text 3. Please, could you help me? I am new to python, and I don´t know anything about plugin development for sublime. import sublime, sublime_plugin def trim_trailing_white_space2(view): trailing_white_space2...

Sublime - put # at the start of a line rather the start of the code when comment

python,sublimetext2,sublimetext,sublimetext3
When inserting a comment into Python via super+/ , it puts the # at the start of the code, like this: I want to put the # at the start of a line, like this: Are there any settings that allow me to do this?...

how to do partial search and replace in a file in sublime text?

sublimetext,sublimetext3
I know how to do search and replace for the whole file. Can it also be done partially? I sometimes need this feature because I use a wrong variable for a method sometimes and I want to correct my mistake without changing the variable name globally. For example, I want...

Force sublime text to use PATH from the shell value

osx,sublimetext3,sublimetext
I am trying to add a simple build system to sublime text 3. Here is my current project configuration : { "folders": [ { "path": "." } ], "settings": { }, "build_systems": [ { "path":...

Sublime Text 3 not Rails/Ruby highlighting syntax

ruby-on-rails,sublimetext3
I've been trying to get Sublime Text 3 set up to learn Ruby and RoR. Everything I've read has said to set it up with Railscasts Colour Scheme. I was under the impression that this would provide syntax highlighting. Unfortunately, all I have is white text on a dark gray...

Sublime 3 toggle comment command doesn't work in Windows

keyboard-shortcuts,sublimetext3,preferences
I've edited the file Preferences > Key Bindings User, and added this: [ { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, ] But the shortcuts doesn't work. What went wrong?...

Can SublimeJEDI autocomplete custom/external class instances?

python-3.x,autocomplete,sublimetext3
For example: from PIL import Image if __name__ == "__main__": im =Image.open("room.tif") Image.Image. when my cursor is at the dot after Image.Image. and I press Ctrl+Space it will show the following: However, if I type im. and press Ctrl+Space it will show nothing. Why does SublimeJEDI not recognize that im...

What is the most practical way to list all the installed packages in Sublime Text 3?

sublimetext,sublimetext3,sublime-text-plugin
I installed a bunch of packages lately on my Sublime Text 3 Editor. I don't keep track of what I installed, but now I would like to know all the packages that I've installed, just to keep as a reference. I tried type : cmd + shift + P ,...

Debugging broken Sublime Text 3 keyboard shortcuts

sublimetext2,sublimetext,sublimetext3
After installing a couple of Sublime Text packages, some of the previous keyboard shortcuts were broken. What's the best way to find the package which defines a keyboard shortcut?...

PEP8 E128: can't figure out why a line is being flagged

python,sublimetext3,sublime-text-plugin,pep8
I'm using Sublime + Anaconda which has a built-in PyLint feature. I can't figure out why the pars_f_name) line in the following block: else: # Get parameters file name from path. pars_f_name = pars_f_path.split('/')[-1] print (" WARNING: Unknown '{}' ID found in line {}\n" " of '{}' file.\n").format(reader[0], l +...

how can i create a short cut for auto-format tags on document in sublime plugin 'tag'?

html,sublimetext3,auto-indent
I want to create a short cut for 'Auto-Format Tags on Document' in Sublime plugin 'Tag' and it works when i choose this function from Edit -> Tag -> Auto-Format Tags on Document. However i add this code in keybindings { "keys": [ "command+alt+s" ], "command": "Auto-Format Tags on Document"...

Sublime layout split into 3 panel, to create custom layout

python,sublimetext,sublimetext3,sublime-text-plugin
Is there any way I can split layout into 3 ? I got this snippet from net self.window.set_layout({ "cols": [0, 0.5, 1], "rows": [0, 0.5, 1], "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]] }) But this will split in to...

Apache downloads PHP files instead of displaying in browser when called via CMD (Ubuntu)

php,apache,apache2,sublimetext3
I've installed LAMP on my Ubuntu laptop with no apparent problems and successfully did the phpinfo() test by navigating to the file through the browser. But the same file is downloaded instead of executing when I'm trying to build from Sublime Text 3 using the following script: { "cmd": ["/opt/google/chrome/google-chrome"...

Reverse all line of text in Sublime Text

sublimetext,sublimetext3
I have a file where I have multiple lines. Is there an option in Sublime Text 3 to reverse whole line ? Like ABCDEFG to GFEDCBA ...

JShint not working in any text editor

sublimetext3,jshint,brackets,sublimelinter
JShint will not run in any text editor I have (Sublime Text 3 and Brackets). JShint is installed globally on my system. SublimeLinter and SublimeLinter-jshint are installed in Sublime Text 3. JShint is installed in Brackets and the added: "language": { "javascript": { "linting.prefer": "JSHint", "linting.usePreferredOnly": true } } to...

Keyboard shortcut for moving tabs in SublimeText3

sublimetext3
Every time I open a new tab in SublimeText I have to take my hands off the keyboard and use the mouse to move the newly opened tab to the desired position among the existing tabs... Surely there must be a keyboard shortcut for moving SublimeText Tabs left and/or right?...

Negative Lookahead/behind Search and Replace Sentences in Sublime Text 3 [duplicate]

regex,sublimetext,sublimetext3,regex-negation,negative-lookbehind
This question already has an answer here: Regular expression to match text that doesn't contain a word? 17 answers I'm editing the text below in Sublime Text 3, I want to remove the sentences that do not contain the string /do not/. Lorem ipsum dolor sit amet, consectetur adipiscing...

Dark UI in sublime text 3

user-interface,themes,sublimetext3
I've installed the SETI_UI theme through Package Control. I can't work out how to get the dark UI, like on the screenshot here: https://packagecontrol.io/packages/Seti_UI Any ideas?...

Sublime: disable all packages

sublimetext3
I'm using Sublime Text 3083. When I load a file with several thousand lines and try to edit it, it gets amazingly un-responsive to the point that adding/removing even one character takes it seconds. I have > 20 packages installed and I need a way to disable all of them...

Convert markdown links from inline to reference

regex,markdown,sublimetext3,sublimetext
I have a changelog file formatted using Github's markdown. Initially I used inline links for every link I needed to add, that is: This is some [example](http://www.stackoverflow.com) line of text. Over time, as the file grew in size, it became a bit messy due mainly to this way of inserting...

Regex Find/Replace Width and Height

html,regex,sublimetext3
I'm trying to run a find/replace on a series of files to remove the width="..." and height="..." definitions in SublimeText 3. I've tried width="*" height="*" but I'm not getting any luck. Any suggestions? ...

sublime text 2 word wrap setting doesn't work

sublimetext2,sublimetext,sublimetext3,sublime-text-plugin
I put this preference.sublime-settings, { "ignored_packages": [ "Vintage" ] "word_wrap": true } But the error comes out like this when I save it: Error trying to parse settings: Unexpected character, expected a comma or closing bracket in ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings:7:2 what's wrong with this?...

Sublime text 3 using pip to download stuff

python-3.x,pip,sublimetext3
I have set my sublime text to build on python version 3.4.3. I am trying to download Scrapy to test some stuff, but pip download is failing. My code in sublime text is : import sys print (sys.version) pip install Scrapy Output: File "/Users/X/Documents/Learn/XX/Python1.py", line 3 pip install Scrapy ^...

Fixture error Hartl chapter 8

ruby-on-rails,shell,sublimetext3
I've just gone thru chapter 8 of the Hartl tutorial but keep getting an error when I try to run the tests. I'm getting 3 of the same error and the issue seems to stem from the user login test, where fixture :michael is not being found in the fixture...

Interactive Perl programming in Sublime 3 (Ubuntu)

perl,ubuntu,sublimetext3,sublimerepl
Practically all of the exercises in my introductory Perl book have so far required taking input, which is causing me some challenges with Sublime Text 3. I set up the custom build file from this post to run scripts directly and I've also installed REPL on top of that, but...

Key binding for “New View into File”

sublimetext3
I'd like to customize a key binding for "New View into File" (that appears in the "File" menu) in Sublime Text 3, but I can't figure out what to set for command : {"keys": ["ctrl+alt+v"], "command": "???"} According to https://www.sublimetext.com/docs/commands, I would expect clone, but it doesn't seem to work,...

Sublime 3 cdm commands in console

sublimetext3
I've installed Sublime 3 and I want to be able to launch cmd commands in the console, e.g "npm show express version". How can I make this possible?...

Selectively replace words with regular expressions

regex,sublimetext3,pcre
Is it possible with regular expressions to selectively replace certain words? My document contains several lines like this: <type>xxx</type> Where xxxcan be bug, improvement, newfeature, and several other values. I want to convert this to: "kind":"yyy", Where yyy = xxx, except that improvement should be replaced with enhancement, and newfeature...

custom keybinding on find and Reg replace in sublime text?

sublimetext2,sublimetext3
Am thinking whether it's achievable to make shortcut key-bindings on user sublime key-map, so that one-key-triggered "find reg expression and replace-all" if can assign custom keybinding will save a lot of work. For example can be applied to make below answer into shortcut: Sublime Text 2: How to delete blank/empty...

How to search multiple files of specific file type within Sublime Text 3

sublimetext2,sublimetext,sublimetext3
I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog. My guess was to set the search location to: c:\example\*.php but that gives an error: Unable to open c:\example\*.php Is there a...

generate HTML gallery

html,generator,sublimetext3,magnific-popup
I am making gallery in HTML with Magnific Popup, I want to have 100 images, HTML markup have to looks like this <a href="/img/gallery/mdd-2014/img00001.jpg" title="title"> <img src="/img/gallery/mdd-2014/thmb/img00001.jpg" alt="alt"> </a> ... <a href="/img/gallery/mdd-2014/img00100.jpg" title="Škôlka pod lesom - Nová Baňa"> <img src="/img/gallery/mdd-2014/thmb/img00100.jpg" alt="Škôlka pod lesom - Nová Baňa"> </a> How can I...

alert is not defined - Alternative? [closed]

javascript,node.js,sublimetext3
I'm running JavaScript from the node.js console I added to Sublime Text 3. Looking at ReferenceError: "alert" is not defined, I understand that since the script isn't run from a browser, alert boxes are disabled. Are there any alternatives to this? I'm fine without the alert boxes, but I want...

Is there a way to disable (or at least clear) Find/Replace history in SublimeText 3?

sublimetext,sublimetext3
SublimeText keeps Find / Replace history. Is there an easy way to disable or at least clear this?

In Sublime Text, how can I increase the difference/contrast of the line highlight color from active file and other open, inactive files?

sublimetext3,preferences
OSX / Sublime Text 3 In Sublime, I work on several files at a time and have them set up in panes with 2 or more files visible at once. I have my <key>highlight_line</key> turned on and configured to be red (high visibility) in my current color scheme. Among the...

Sublime Text - How to get OSX keyboard shortcut on linux or windows

linux,windows,osx,sublimetext3
In Sublime Text 3 on OSX, I am able to use the keyboard shortcut "command+left/right arrow" to jump to the beginning/end of a line, as well as "command+shift+left/right arrow" to select from the point I am at to the beginning/end of the line. Is there a way to get the...

Not about programming, but issues with SublimeText UI

themes,sublimetext3
Does anyone know (a) why this is happening and (b) better still, how I can fix it. When I right-click a folder in the sidebar and select "New File" the dialog that shows the textbook to enter a new file name is partially hidden behind the status bar. I have...