sublimetext3

Sublime Text indentation behavior

百般思念 提交于 2019-12-11 09:57:23
问题 When using HTML syntax mode in Sublime Text, I see what appears to be erroneous behavior. However, I've exhausted Google trying to find any mention of the same issue. The image explains it best: You'll note that in each instance, the cursor starts at the correct location (one tab in from the current tag). However, the indentation immediately shifts to the left when typing begins. I've compared this behavior to Coda and Atom, but neither have this issue. Sublime Text 3 is up to date. The same

Cannot use Ananconda Interpreter in Sublime Text 3

浪尽此生 提交于 2019-12-11 09:07:17
问题 I want to use Sublime Text 3 as my Python editor but cannot figure out how to make Anaconda its default interpreter for Python. To make sure that Anaconda is added to the path correctly, in the terminal I typed $ which python Terminal returns /home/rahit/anaconda3/bin/python But when I type a code like this in ST 3 import sys print(sys.executable) The output in the Sublime console will be /usr/bin/python Now if I type import pandas as pd There will be always an error ImportError: No module

Is there a way to do multiline editing a-la Visual Studio in Sublime?

风流意气都作罢 提交于 2019-12-11 07:15:26
问题 Visual Studio allows selecting a vertical piece of text, and then editing it. One has to hold Shift + Alt and move the cursor up-down left-right to make the selection. I know there is Ctrl + D multi-cursor thing in Sublime, but it's not quite the same. So is there a way to do the multi-line editing a-la Visual Studio in Sublime? 回答1: Move cursor where you want, hold ctrl + shift press ↓ a few times. Press tab , then ← twice, type "Hello World,", Press esc to leave multi-line mode. 回答2: You

How to use xdebug with sublime to debug python script

故事扮演 提交于 2019-12-11 06:48:13
问题 Trying to move to sublime from heavier IDEs. The thing I noticed it lacked was debugging compared to the intellij IDEs. Through research I learned about XDebug and I believe it can provide comparable debugging. However, I'm having trouble setting it up. Here is what I've done: Installed sublime 3 Installed package manager Used package manager to install XDebug Noticed files were missing so I deleted the package through the package manager Cloned the repo from martomo (https://github.com

Sublime Text 3 Creating Plugin adding external python libraries

允我心安 提交于 2019-12-11 06:41:49
问题 So I'm trying to create a plugin and execute it with the context menu. In my plugin, I want to make use of the mechanical soup module. I have configured the Context.sublime-menu file as follows to create the Context menu option: [ { "id": "SlackSnippets", "caption": "SlackSnippets", "children": [ {"id": "wrap"}, { "command": "slacksnippet" } ] } ] Now, with this, the extreme basic functionality of the context menu works, it shows up when you right-click, and it's child command is clickable: .

Automatically wrap custom XML tags and numbering them

淺唱寂寞╮ 提交于 2019-12-11 06:16:47
问题 I have a dialogue script for a game that needs to be formatted in XML, with following format... <line id='1'> .............. </line> <line id='2'> .............. </line> <line id='3'> .............. </line> .... <line id='n'> .............. </line> Dialogue script I've given right now is written in plain format, I only need to wrap each lines in XML tags above. Is there a way to automate the process? 回答1: You can achieve this in two steps. First, add a line number to the start of each line of

Sublime Text - find all instances of an html class name project-wide

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:06:43
问题 I want to find all instances of a class named "validation" in all of my html files project wide. It's a very large project and a search for the word "validation" gives me hundreds of irrelevant results (js functions, css, js/css minified, other classes, functions and html page content containing the word validation, etc). It can sometimes be the second, third, or fourth class declared so searching for "class='validation" doesn't work. Is there a way to specify that I only want results where

Is it possible to have multicolored headings in markdown syntax in at least one of these editors: Sublime Text 3, Vim or Visual Studio Code?

流过昼夜 提交于 2019-12-11 05:13:59
问题 Essentially I would like for my headings to look like this: How could I accomplish this in markdown syntax? I prefer sublime text but would be happy if I can make this happen in Sublime Text 3, Vim or Visual Studio Code. Lastly, if getting the subheadings to produce multicolors is difficult, then, how could I change the hashtag color of all headings to the same color. For example, all of my headings would have green hashtags but the heading font color would be #FFFFFF . Thank you for your

Changing sublime text 3 html tag enclosure colors

Deadly 提交于 2019-12-11 04:47:25
问题 I've been using this tool to set up my sublime text 3 color scheme to match the custom one that I made using the built in editor on coda 2: http://tmtheme-editor.herokuapp.com/ This editor is great, but I'm having trouble changing the color of the < and > around html tags without changing the color of regular text elsewhere. The following in my theme file changes the color of the text inside the < >. <dict> <key>name</key> <string>Tag name</string> <key>scope</key> <string>entity.name.tag<

Save all files before running custom command in Sublime3

人走茶凉 提交于 2019-12-11 04:24:33
问题 This is a derivative of this question I made some days ago Save file before running custom command in Sublime3. I've setup a custom keybind in Sublime Text 3: { "keys": ["f5"], "command": "project_venv_repl" } to run the project_venv_repl.py script (see here to learn what it does): import sublime_plugin class ProjectVenvReplCommand(sublime_plugin.TextCommand): """ Starts a SublimeREPL, attempting to use project's specified python interpreter. """ def run(self, edit, open_file='$file'): ""