If I split the IDE into 2 sides, the tab list is duplicated. Is there any way to hide the one in the middle of the screen, to save space and make it easier to compare the 2 files?
Sure. I can see a few possible options actually.
1. Use more appropriate Compare Files functionality: look for Compare with... action in the context menu.
For example:
Locate and select 2 files in the Project View, use context menu and choose Compare Files action.
... or select one file and use Compare with... -- now point to the 2nd file via file chooser dialog.
... or copy contents of one of the files into the Clipboard and then use Compare with Clipboard... in your Editor context menu (currently opened file).
NOTE: You can edit/merge files in Differences Viewer screen; when you exit it the changes will remain until auto-save or manual Save is called.
2. Do not display list of the opened tabs on the right side: put it at the top/bottom or temporarily hide it completely (until you are done with your comparing task).
You can change the tabs position quickly at any time via Help | Find Action... (or Search Everywhere via Shift + Shift) and search for tab placement -- it can then be changed right from there without the need to go into the Settings/Preferences screen (use the appropriate ON/OFF toggle).
I'm developing a Sublime Text 3 plugin which uses the quick panel a.k.a. the command palette.
I would like to add a textual title/label at the top of the quick panel when the user opens my plugin's quick panel menu, because my plugin runs in various modes and I want to make it clear which mode is currently running (Test, Pre-Live, Live, etc.)
Is this possible, and how?
This a mockup of what I want to achieve:
This is not possible in a quick panel, no. The only thing you can provide to the quick panel display-wise is the list of items that you want the user to choose from. Each item in the list can contain multiple lines of data however (with the restriction that every row has to contain the same number of lines):
Something like that could potentially be used to provide context on the items in the list that allows the user to know what mode you're in.
The Command Palette and the quick panel aren't the same thing (although they are visually similar); the command palette only displays commands that you can choose. By using an input handler, you can customize the display somewhat:
In this sample, View Package File is the selected command, but the command has control over what that text says (it's just the command name by default). You also have the power to provide a "preview" (basically any extra information that you want) about the currently selected item:
So given that, depending on your use case your command could present its interface in the command palette to give this kind of contextual clue.
According to this source the definition if Permute Lines submenu is following:
{
"caption": "Permute Lines",
"children": [...]
}
And it doesn't contain an id. Is there a way to add items to this submenu?
Also this source is 5 years old and is probably for Sublime Text 2. Is there a more recent version of default menu file?
To answer your second question first, you can always get at the most recent menu definition from your own copy of Sublime; it's stored in the file Default\Main.sublime-menu, which you can get to most easily using PackageResourceViewer to open it up.
That said, the part of the menu that you're referencing in your question is the same between Sublime Text 2 and Sublime Text 3 and neither of them has an id value directly within the Permute Lines sub-menu.
By creating a Main.sublime-menu in some other package (e.g. your User package) you could create entries that are adjacent to that sub menu, but in order to actually put new content directly inside of it you would need to create an Override.
You can do that via PackageResourceViewer; if you use it to open up the Default\Main.sublime-menu file, you can modify the file and when you save it, it will be saved as an override.
From this point forward your override becomes the new default menu; other packages that extend the menu can still do so, but they will be merged with your version and not the shipped version.
This is not without its risks in that if a future version of Sublime Text includes a modified version of the menu, your override will still take precedence and you won't be warned that it's happening, so you could potentially miss out on fixes.
This happened recently when the latest build of Sublime modified the base menu to include an install link for PackageControl, for example.
Also, this is only a viable solution if you want to edit the menu for your own purposes; if you're a package author, you can't use this method to distribute your own changes.
In my logcat there is too much output, so I'd like to filter it using some keywords, basically displaying only the output containing the keyword(s). Is there a way to do that in Android Studio through the UI?
There are two ways to do this, both are in the Android tab at the bottom of the IDE (where the logcat output is displayed).
First, you can simply type something into the search box at the top and it should filter only messages containing the text you type.
Second, you can do advanced filtering by clicking on the dropdown at the top right, which should be displaying No Filters by default, and choose Edit Filter Configuration and specifying what to filter on. Using this method you also save the filters and can re-use them by selecting them in the dropdown.
Screenshot:
What I do is right click on a line I don't like and select "Fold lines like This"
As #free3dom said you can select the process from which you want to receive logcats.
Here is the screenshot.
I MADE A VIDEO TUTORIAL TO SHOW YOU HOW= https://youtu.be/xw2qE5ko_9I
Give your log a name. I called mine "wawa".
In Android Studio, go to Android-> Edit Filter Configurations
Then type in the name you gave the logs. In my case, it's called "wawa". Here are some examples of the types of filters you can do. You can filter by System.out, System.err, Logs, or package names:
First declare your TAG names in your code e.g.
private static final String TAG = "MainTagName";
Then add log statements where you want to output something
Log.d(TAG, "Activity created");
As per free3dom in the second post, on the logcat tab click on the Filters dropdown and then Edit Filter Configuration.
In this example we are using by Log Tag (regex) option to display log messages for any of the three matching tag names using the pipe | separator (without spaces):
MainTagName|SomeTagName|SomeOtherTagName
see this https://medium.com/zinuzoid/if-you-developing-android-application-1bdff0a96205
just create LogCat filter a insert below String to "LogTag" which will then ignore system lines
^(?!.*(BtGatt|dalvik|Environment|DataRouter|FA|art|Wifi|ServiceManager|Atfwd|tnet|MDnsDS|Download|Bluetooth|slim|QSEECOMAPI|WVCdm|QC-time|sensors|nanohub|Drm|Babel|Dropbox|gsamlab|Cryptd|Vold|QC_|Conscrypt|Dns|sound|NetWork|OpenGL|TLog|GMPM|Microphone|Process|Dynamite|cr_|VideoCapabilities|libEGL))
I had trouble turning on the filters in Logcat. To see the filters in Android Studio 3.2, you have to toggle 'Floating Mode' on and off again to make the filters reappear.
With AndroidStudio Dolphin a new logcat view mode was introduced providing a more structured view of the logcat output. It also introduced the new filtering options package:, tag: and level:. You can also search for the text in the whole entry by not preceding an option.
Quoting from Googles News post where the new logcat was introduced (https://androidstudio.googleblog.com/2022/03/android-studio-dolphin-canary-6-now.html)
Specific values:
package:<my-package-ID>
tag:<my-tag>
level:[VERBOSE | INFO | ASSERT | DEBUG | WARN | ERROR]
Exclude a specific value by preceding the key with -:
-tag:<exclude-this-tag>
Use the regular expressions with a given key by placing a ~ after the
key:
tag~:<regular-expression-tag>
Combine with the exclude tag:
-tag~:<exclude-this-regex-tag>
You can also see a history of queries by clicking the filter icon in the query field and selecting them from the drop down. To favorite a query so that it stays at the top of the list across all your studio projects, click the star icon at the end of the query field.
package:mine matches all PIDs for the local app project.
One alternative that works for me is to select the Show only selected application option in the filter menu:
I don't know if the images in the other answer are old or if I was missing something, but here is an updated image.
Click the Android Monitor tab at the bottom and make sure the logcat tab is selected. Then type in whatever you want to filter your output. I filtered mine with my tag name TAG.
Just to add my own mistake:
make sure that when you are using the Emulator and a real device, to switch to the device you are debugging in the dropdown on the left above the logcat tab.
i.e. to show a value (let's say, for the purpose of this example, set tabstop? ... 8), but when that value changes to show the changed value?
I'm playing with Vim to see if I could setup a menu which would display some of my more used settings to save up on set setting? ... any ideas?
I also find it a little bit unusual to put settings values into the menu (a menu item usually is associated with an action that is triggered by selecting it), and would also recommend using either the 'statusline' (for settings that you want to see in parallel for each open buffer) or 'titlestring' (for settings that you only need for the current buffer).
You can use the :menu and :unmenu command to dynamically create and update menu items. Unlike the above mentioned mechanisms, however, Vim will not automatically trigger the updates; you have to do this with :autocmds on the appropriate events (e.g. CursorHold) yourself.