sublimetext3

Sublime Text: text list of open files

喜夏-厌秋 提交于 2020-01-01 04:54:07
问题 I have some files opened in sublime text. I can see that list on the side panel. I want to know if there is a plugin that can give me this list as text. i.e., I hit a button and new file pops up that has lists all the open file names. 4 open files: open_file_1.cc open_file_1.h open_file_2.cc open_file_2.h 回答1: I wrote a small plugin for this as I could not find anything. Pasting it here so that someone can use it if needed in future. https://github.com/rrg/ListOpenFiles 回答2: Press: Ctrl `

How to refresh Sublime Text 3 workspace color schemes?

蓝咒 提交于 2020-01-01 04:50:13
问题 When you save a project, Sublime Text will create a .sublime-workspace file. In this file, there is an array of buffers, and for each buffer there is a color_scheme property. This is set to whatever color scheme was chosen when the buffers and workspace were created. I recently changed my theme and color scheme in my user settings file. How can I refresh all of my project's workspaces so that way it uses my new color_scheme provided in my user preference file without needed to edit each

Sublime Text 2: How to Page Up/Down without moving the cursor

牧云@^-^@ 提交于 2020-01-01 04:09:26
问题 I'm on OS X 10.8.4 using ST2. When I use the Home and End keys, the viewport moves and the cursor is left alone. This is standard Mac behavior, and what I'd expect. However, when I use Page Up (pageup/pgup) and Page Down (pagedown/pgdn), the cursor moves along with the viewport. This is not how other Mac apps behave, and I'd like the cursor to be left alone for these keys too. I've been able to get this half-working by adding this to my key bindings: [ { "keys": ["pageup"], "command": "scroll

Showing menu bar in sublime-text 3

送分小仙女□ 提交于 2020-01-01 01:17:28
问题 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

Reading stdout process in real time

久未见 提交于 2019-12-31 12:31:10
问题 Let's consider this snippet: from subprocess import Popen, PIPE, CalledProcessError def execute(cmd): with Popen(cmd, shell=True, stdout=PIPE, bufsize=1, universal_newlines=True) as p: for line in p.stdout: print(line, end='') if p.returncode != 0: raise CalledProcessError(p.returncode, p.args) base_cmd = [ "cmd", "/c", "d:\\virtual_envs\\py362_32\\Scripts\\activate", "&&" ] cmd1 = " ".join(base_cmd + ['python -c "import sys; print(sys.version)"']) cmd2 = " ".join(base_cmd + ["python -m http

Indentation Error with Sublime Text

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-31 12:08:13
问题 I'm trying to use the auto-indentation feature in Sublime Text 3 for HTML. I've got some block comments in the html and selecting Edit>Line>Reindent works until it hits a block comment. Try to reindent the example here: <html> <head> <title>Testing Indent</title> </head> <body> <table> <tr> <td> Cell 1 </td> </tr> <tr> Cell 2 <!--Block Comment Here And a Little More Here --> </tr> </table> </body> </html> and it turns out like this: <html> <head> <title>Testing Indent</title> </head> <body>

How can I open command line prompt from Sublime in windows7

孤人 提交于 2019-12-31 09:04:12
问题 I'v created a function in VIM named OpenCMD(), it used for open command line or terminal in VIM (And cd in the current file path) func! OpenCMD() if has('win32') let com = '!cmd /c start cd '. expand('%:p:h') else let com = '!/usr/bin/gnome-terminal --working-directory=' . expand('%:p:h') endif silent execute com endfunc nmap cmd :call OpenCMD() Now, I want to open command line and cd in the current file path in Sublime (sublime 3 beta). The function as the same as the OpenCMD() . And I

Is there a way to sync Sublime Text settings across multiple computers?

梦想的初衷 提交于 2019-12-31 08:55:50
问题 I have two computers, a desktop and a laptop. Now I have set up my ENV to sync with the help of a dropbox link. Is there a way to sync my Sublime Text 3 settings between these two computers including all my plugins, preference files, etc... and, if so, how can I set things up to sync properly? 回答1: I am assuming you are using Package Control for managing your plugins. What to Sync Both a list of your packages as well as all of your settings files are all contained within your Packages/User/

Is there a way to sync Sublime Text settings across multiple computers?

偶尔善良 提交于 2019-12-31 08:52:46
问题 I have two computers, a desktop and a laptop. Now I have set up my ENV to sync with the help of a dropbox link. Is there a way to sync my Sublime Text 3 settings between these two computers including all my plugins, preference files, etc... and, if so, how can I set things up to sync properly? 回答1: I am assuming you are using Package Control for managing your plugins. What to Sync Both a list of your packages as well as all of your settings files are all contained within your Packages/User/

Open files and folders in same window in Sublime Text

天大地大妈咪最大 提交于 2019-12-31 08:42:47
问题 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? 回答1: In Sublime Text Menu: Preferences -> Settings - User Look for ' open_files_in_new_window ' And change ' true'