sublimetext

Sublime Text 3: AutoComplete from anywhere in whole project?

别等时光非礼了梦想. 提交于 2019-12-21 07:36:06
问题 I am wondering if there's any way to get smart autocompletion from anywhere in a Sublime project? I found cool package called All Autocomplete which indexes open tabs for autocomplete... but I would love if it searched all files in project. I can't seem to get SublimeCodeIntel to do this... maybe because SublimeCodeIntel is giving me errors in Sublime's console panel? EDIT: Actually, it seems to autocomplete sometimes. Other times I just get the mentioned SublimeCodeIntel eval errors in

Writing custom completions in Sublime Text 2

我是研究僧i 提交于 2019-12-21 07:29:09
问题 Sublime Text 2 comes with many built-in completions/templates for common idioms. In C++, these include for loops with fields, etc - if I wrote vec and pressed tab, it would expand to std::vector<field> v; where field is a writeable field. Many of these are written in a style that I do not like or do not provide things that I would like them to, and some that I want to use do not exist. Is there a way to modify these built-in "completions" and write my own? 回答1: I believe you're looking to

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

左心房为你撑大大i 提交于 2019-12-21 03:41:31
问题 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 way to perform the search I'm hoping to perform? 回答1: C:\example,*.php In the Where: click ... , select Add Folder , after that select Add Include Filter 来源: https://stackoverflow.com/questions/28751213/how-to-search

How to disable spell checking in Sublime Text 3?

倖福魔咒の 提交于 2019-12-20 19:15:06
问题 I tried the following settings, but all it did was make things progressively worse. "spell_check": false, "dictionary": "", "spelling_selector": "", I don't understand the default value of spelling_selector , but maybe that's the key? 回答1: This is what setting 'spell_check' in your preferences - user or syntax specific - user preference file does: // Set to true to turn spell checking on by default "spell_check": false, Note that you are changing the DEFAULT status of spell checking. To

Highlighting Github README.md format in Sublime Text 2

主宰稳场 提交于 2019-12-20 10:38:02
问题 I have got README file and I want Sublime to highlight only some pieces of code idented by some "tag", for example: Here is an example of usage # This should be highlighted ```ruby superhero = Superhero.new superhero.make_world_better ``` or with [code lang=ruby] or whatever 回答1: Lazy answer ( for independent fast learners ) Install package control for sublime-text. Once you restarted sublime-text, see "Fast Answer". Fast answer ( for intermediate to advanced sublime-text users ) Ctrl + Shift

How to change the color of the console in sublime text?

有些话、适合烂在心里 提交于 2019-12-20 10:35:04
问题 I have a dark theme (IR Black) in Sublime Text 2, but the console comes up white on black. Is there a way to change the console colors? 回答1: Found the answer here: http://www.sublimetext.com/forum/viewtopic.php?f=2&t=4583&p=20807#p20807 \Packages\Theme - Default\Widget.sublime-settings { // "color_scheme": "Packages/Theme - Default/Widgets.stTheme", "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme" } 回答2: I'm not familiar with your theme, but the beautiful Soda theme has a

Sublime Text 2 Code Formatting

ⅰ亾dé卋堺 提交于 2019-12-20 08:26:34
问题 First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax. The same command works in HTML, CSS, Javascript, C#, etc. I have tried plugins for ST2 and so far I've found most don't work on a Windows box and if they do, it's for a very specific purpose like just Javascript. I have tried (and opened Issues where appropriate): https://github.com/victorporof/Sublime-HTMLPrettify https:/

How to jump to previous and last cursor in Sublime Text 3? [closed]

瘦欲@ 提交于 2019-12-20 08:00:14
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I google a lot and find BufferScroll.But it doesn't work for me.I can't find any shortcut or how to use it in the document. Update: Every time I try to use Jump Forward(Shift+Alt+Minus),my editor always says "Already at the newest position" while actually not in the newest position.Jump Back(Alt

How to jump to previous and last cursor in Sublime Text 3? [closed]

笑着哭i 提交于 2019-12-20 08:00:09
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I google a lot and find BufferScroll.But it doesn't work for me.I can't find any shortcut or how to use it in the document. Update: Every time I try to use Jump Forward(Shift+Alt+Minus),my editor always says "Already at the newest position" while actually not in the newest position.Jump Back(Alt

reindent shortcut in sublime text [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-20 07:59:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Indenting code in Sublime text 2? I'm trying to learn keyboard shortcuts in Sublime. What is the keyboard shortcut in Sublime Text 2 for reindent? According to some pages it should be TAB but that only indents, not reindents. 回答1: You can find it in Edit>>Line>>Reindent , but it does not have a shortcut by default. You can add a shortcut by going to the menu Preferences - Keybindings-User, then add there (the