I'm using Sublime Text 3. I have a layout with a screen-height column on the left and three panes on the right (see figure below). This setup is great (especially with the Golden Ratio plugin), but I still miss one feature I had in vim. I had a hotkey that caused the pane that had focus to take up the entire window, like entering full-screen mode for that one file. When done, you could enter the hotkey again to revert to your previous layout. It's as if the original layout of the panes is saved, and the focused pane temporarily takes over the whole window, and when you're done editing the file full-screen, the program remembers how things were laid out and reverts to that. Here's an ASCII-art example:
BEFORE AFTER
---------------------------- ----------------------------
| | | | |
| | | | |
| |-------------| | |
| | | | |
| | | | |
| |-------------| | |
| | | | |
| | | | |
---------------------------- ----------------------------
By typing a hotkey, you switch from BEFORE to AFTER; typing the same hotkey again reverts you to BEFORE, with the same layout and the same tabs in each pane.
Is there a way to do this in Sublime Text 3, including a plugin that might enable this? If the reader knows how to write Sublime plugins, how hard do you imagine writing such a plugin would be? I would guess it wouldn't be too bad: a matter of stashing state somewhere and programatically telling Sublime to revert to that when switching back from full-screen mode.
I know this is a year on, but the MaxPane plugin solves this problem.
https://github.com/jisaacks/MaxPane
Install through package manager, and then use Command Shift Enter to toggle a pane between full screen and within whichever layout you are using.
You may try using Origami, it helps organising layouts, it doesn't have what you want, but it has a Zoom functionality, here's a quote from the author:
Additionally, Origami allows one to zoom the current pane, making it
take up a large portion of the window. As above, first press super+k,
then press:
super+z: Zoom the current pane so it takes up 90% of the screen (the
fraction is changeable in the keybindings) shift+super+z: Unzoom:
equally space all panes (Note: Windows and Linux use ctrl instead of
super.)
There's no way to do what you want currently, though you may try writing a plugin yourself
You could also chose 1, a single panel default switcher: ALT+SHIFT+1-3
https://superuser.com/questions/368785/switch-between-columns-active-tabs-in-sublime-text-2/424987#424987
Related
I don't remember changing autocomplete but recently it started doing a pop-up style that looks sort of like this:
┌--------------------------------------------------┐
| Press t̲a̲b̲ or c̲l̲i̲c̲k̲ to insert, e̲n̲t̲e̲r̲ to execute |
| clear |
| cat /proc/sys/fs |
| cfoo |
| cbar |
└--------------------------------------------------┘
user#MACBOOK /usr/local/bin % c▯
How do I change it back to autocomplete that shows inline with the prompt?
I was not aware that Termius -- the terminal app that I use on my MacBook -- had added an autocomplete function. In the upper right corner, next to the "share session" button was a button labeled "au". I clicked on that button and it had an option to disable autocomplete.
That's what I get for not reading update release notes. In my defense, Termius rolls out new releases too often. In the past six months (at the time I'm writing this) Termius has had twenty-one releases. That's almost a release every week.
I've created two windows in Ruby using curses, which look something like this:
------------------------
| |
| Window 1 |
| |
| |
------------------------
------------------------
| Window 2 |
------------------------
Window 2 is static. Window 1 will have be filled with text. Currently, if the text gets to the bottom line, the next word is appended to the bottom line, rather than going on the next line. How do I make one of the following options possible:
(a) Window 1 grows is new lines are needed
(b) Window one has an 'overflow-y' feature, like in css.
I've tried having Curses.stdscr.scrollok enabled, and each time I get to the bottom of the window using window1.scroll, but neither achieve what I'm looking for.
Looking at the C library for curses, I've figured this out. Thought I'd post the answer in case anyone else needs it!
Overflow-y
You need to have two things set:
Curses.stdscr.scrollok true
window.scrollok(true)
When you get to the last line, it'll just keep appending to the current line. To solve this, I added:
if (window.cury + 1) == window.maxy
window.addstr("\n")
end
Scrollable window
window.scroll() # scrolls up one line
window.scrl(-1) # scrolls down one line
Does anybody know how can I turn off or change the color to the cursor for the phpstorm IDE?. Please see the image attach.
Thank you so much.
Settings/Preferences | Editor | General
Highlights on Caret Movement section
Disable Highlight matched brace option
P.S.
You can use search box on the top left to quickly find option in Settings/Preferences screen.
If you want to change that color to another one:
Settings/Preferences | Editor | Colors & Fonts| General
Code | Matched brace (that's for v10; in v9 all styles are in single list and not grouped like in v10).
Normally I can open two Editor panes in Xcode: one for the .h and one for the .m as counterpart. But presently I need to open four panes. So I click on the upper-right + sign. But this cause the splits to happen on the right pane so that I have one left pane and three right panes stacked vertically. How might I move the panes around so that one pane shows in each quadrant? This very easy to do in eclipse. I imagine Xcode can do it too.
Here is what I want
_______________________
| | |
| .h | .m |
|__________|__________|
| | |
| .h | .m |
|__________|__________|
You imagine wrong. Xcode can't do that. (The problem is partly that Xcode has no notion of equivalent panes. You always have one "real" editor and everything else is an "assistant" to it.)
Your best bet is to use separate tabs (or windows). These can be configured differently, though in your case I think you just want two tabs configured the same way (assistant on right).
I am wondering what these greens things are in Visual Studio 2010. What are they for? They look pretty random but of course they have to have some meaning. Can any one tell me?
At first glance they don't mean any thing to me.
Picture 1:
Picture 2:
Edit:
They show saved changed content during the document open. Once you close the document they disappear.
They show lines that you have changed.
See here for more details and a table showing what the different colours mean:
+-----------+------------------------------+-------------------------+
| Marker | Different from | Different from file |
| colour | file saved on disk? | that was opened? |
+-----------+------------------------------+-------------------------+
| Nothing | No | No |
| Yellow | Yes | Yes |
| Green | No | Yes |
| Orange | Yes | No |
+-----------+------------------------------+-------------------------+
Edit: Blue indicates that the line was changed, saved and then reverted by undoing.
To see the entire list of colour schemes, go to Tools>Opitons>Environment>Fonts and Colors.(or Ctrl+Q.then type "Fonts and Colors")
Yellow - source code that has been changed since you opened the file, and that hasn't been saved.
Green - source code that has been changed since you opened the file, and that has been saved.
IN SUMMARY...
Start out blank.
Make a change = Yellow.
Save the change = Green.
Undo = Orange.
Change the line again = Yellow.
Visual Studio editor margin can also show light blue bars. But it is only substitution of orange color in some dark themes.
In addition to other answers, please note that there is blue instead of orange in dark themes:
Light themes
Dark themes
(orange color is represented as light blue)
Customization
Using Visual Studio Color Theme Editor plugin from the Microsoft, you can focus on the following 3 items:
The same plugin is available also for more recent versions of Visual Studio, for example
Visual Studio 2015 Color Theme Editor.
This is edited lines of text after last save
or/and
Lines of code edited by Edit->Advanced->Format Document. It formats code (spaces, line breaks, etc) corresponding VS settings for current file's language
Those indicate where the source code has been changed.