Is there a way for Eclipse to show the total number of lines in the currently open file, and/or the file size in kilobytes, at the bottom of the screen near the current line/column display?
Is there is a plugin that changes e.g. 77 : 70 to something like 77(450) : 70?
I don't know of a plugin that does this but you can create your own which adds a control item to a toolbar.
In the control's class you can extend ControlContribution and then you can create a label with any text you want. Look here for a similar example. You could create a toolbar which shows any information you want about the currently opened file.
You can try this plugin. Along with file details the selected text will automatically copied to the clipboard check this Eclipse: selection autocopy to clipboard.
Related
Is there a way to configure VS Code to increase the number of files that are able to be displayed across the tabs at the top?
There are currently just 4 files1 visible in that top area, but ~10 would be ideal:
Example
Sublime text uses smaller font on file names (despite similar font size of the code itself), and so allows about twice as much space for displaying files:
Current work around
I hit opt + command + right arrow a few times to quickly survey open files.
Ideas
Perhaps open files could be quickly surveyed (without key presses) if it is possible to:
Expand the area to have more than 1 row of files
Configure VS Code to show only part of the filename
Use smaller font on the file names (not the code itself), similar to sublime text
Something else?
1 The habits of using long file names, and having a lot of files open at the same time don't help, I'm aware of that.
workbench.editor.tabSizing
There's the "workbench.editor.tabSizing": "shrink" setting value, which is documented as so:
Allow tabs to get smaller when the available space is not enough to show all tabs at once.
(the default value for workbench.editor.tabSizing) is "fit".
workbench.editor.wrapTabs
As other have mentioned, there's the workbench.editor.wrapTabs setting, which you can find more about in this Q&A: Multirow Tabs for VSCode.
TL;DR from the setting's description:
Controls whether tabs should be wrapped over multiple lines when exceeding available space or whether a scrollbar should appear instead. This value is ignored when #workbench.editor.showTabs# is disabled.
git.decorations.enabled
You can shave a few pixels by disabling git decorations if you're working on a git project (of course- this is only if you're okay with disabling git decorations). Git decorations add letter indicators to the tab handles that summarize what has changed about those files. Ex. "M" means the file has been modified, and "A" means it has been added.
"git.decorations.enabled": false
workbench.editor.tabCloseButton
You can shave a few pixels by disabling the close button on tabs (if you're okay with that (you'll still be able to close the tab with the associated keyboard shortcut, or by middle-clicking the tab handle)):
"workbench.editor.tabCloseButton": "off"
workbench.editor.showTabs
If your aim is really to declutter, you can take the hardcore/nuclear route and do:
"workbench.editor.showTabs": false,
Et voila! Now the tab handles take up zero space because they're gone :D (and you can navigate tabs using ctrl+tab and ctrl+shift+tab (that's on Windows and Linux- not sure what it is on MacOS), or by using the Explorer view's "Open Editors" section (you might need to enable it first under the three-dots menu))
Is there a search feature that we can use to search the files in the Source Control View (in the Activity Bar)? Let's say we have tens of files changed and when we go to the Source Control view, how do I find and add a specific file to the Staged state by using the UI?
Just pick any of files and start to type filename you want to find. Then typed text appear in the right upper corner of SCM View and you can filter out searched files.
See how it looks:
Also this way works in the Explorer view.
Upd. Official description of feature: https://code.visualstudio.com/docs/getstarted/userinterface#_filtering-the-document-tree
I want to customize the insert/edit image popup in tinymce editor in Moodle.
The requirement is shown below as image:
That is I want to add a new tab next to Advanced tab, and want to add some message/text/fields etc. You can get my requirement from the above image.
My problem is I don't know which file is to edit. I tried some files but no effect/change is displayed.
My folder structure is:
plugins contains moodleimage and other folders
tiny_mce contains 3.5.11\plugins\advimage and more folders
I tried here also..but no luck..
So please someone help me to find the files to make the changes.
My Moodle version is: 2.9
Go into:
<your_moodle_installation>/lib/editor/tinymce/plugins/moodleimage/tinymce/image.htm
and go to the line 46 (or around it):
<li id="advanced_tab" aria-controls="advanced_panel"><span>{#advimage_dlg.tab_advanced}</span></li>
Just copy and paste it in the line below.
If you open your tinymce editor you will see that the "Advanced" tab is doubled.
Go and customize it;-)
I am creating an Eclipse plugin. It creates custom Problem markers. What I would like to do is inlay text at the marker location in the CEditor to give the user information. Basically add a comment, but I do not want these comments saved when the user saves the file. Is there a way to do this in Eclipse or is there a plugin that I can use to do this? Thank you in advance.
I have solved this. It can be done by treating the editor as a styledText area. With this other controls can be added to the styledText area. I just added a label with my text. Since the label is not part of the actual file it does not get saved with the file. Upon close of the file in the editor the label is disposed and the underlying file is left unmodified by the addition of the label.
I am currently working on eclipse plugin development. I am working with the builders and markers and I have implemented a rename participant where it checks for a valid file name (does not contain any special characters, lets assume a valid file name to be a alpha numeric regular expression). Its working fine when the user is working within the workbench. Say, when a user directly goes into the file system and changes the file name. I have implemented the markers for this case too. It will show problem marker for the respective file in the project stating, "Invalid file entered - {filename}"
Is there any possibility to change the action on clicking the respective problem marker in the problems view. Say, if such a rename problem marker comes I want to open the rename resource dialog instead of opening the respective file on clicking the problem in the view. Any help upon that.
Although this does not change the double-click behaviour of the marker, you could provide a Quick Fix for the user as described in the Eclipse marker resolution help, and display the rename resource dialog from within the IMarkerResolutionGenerator you provide.