Visio automatically changes the font of org chart boxes for me - visio

I want to make my Visio boxes have a specific font and size that is not the default. Whenever I try and change, let's say to "XYZ", it will automatically change the font back to the default and add a space below the XYZ which causes the XYZ to move up on the box.
So in conclusion, the font and size will automatically change back to default, and it will for some reason also add a space below the text string.

Right-click the stencil that contains the shape(s) you want to edit, click Save As and give the stencil a useful name.
Now the stencil is editable,Right-click the shape whose defaults you want to change, select Edit master → Edit Master Shape and edit away.
When you're done, close the window (not Visio) and make sure to save the changes
Check this link too :)
How do I change the default font size in visio

Related

How to increase max length of line in VSCODE editor?

I have an issue where my code-lines wrap to the next line too soon and there's a weird empty margin on the right side of my editor, which takes up useless space. I thought it was the minimap at first, but it's not that. The size remains the same regardless of the editor window size.
I've probably added it by accident through some shortcut keys but can't find anything related to it from the settings.
Looks like you have the Dart extension installed. If so, change Dart: Line Length to a higher number (9999999 if you want). 0 might also work to disable that option.
As it says, you might also need to change the rulers in the dart section of settings.json
enter image description here
Open Extensions on the menu on the left or File menu.
Then click on the extension settings button.
Change the line length for the extension you are working with.

How to display more files on top tab in VS Code?

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))

Custom font doesn't have a line wrap

When I use custom font, it will cover other text instead of auto linefeed.
How to make it auto linefeed?
solution
I think you'll find this tutorial useful:
[Tutorial][Unity] Generate and import a bitmap font with a free tool -
http://www.benoitfreslon.com/unity-generate-and-import-a-bitmap-font-with-a-free-tool
In addition, follow the help for line spacing:
You can change the spacing or the kerning if you create a editable
copy of the font, you just have to click in the font (in the Assets
panel), go to the gear icon of the Inspector panel and click "Create
Editable Copy". The new copy on the Assets panel has a parameter
called "Line Spacing" that you can modify at will.
http://answers.unity3d.com/questions/22732/how-can-i-adjust-line-spacing-for-a-font.html
So, for those of you who created your custom font in much smaller pixels (e.g., 7x7), try changing the Line Spacing to one number above the width/height. If each letter is about 8x8, change the Line Spacing to 9 and adjust from there.

How do I adjust the position attributes of custom Eclipse markers when a file is edited by typing?

Does Eclipse adjust the position attributes of custom markers when a file is edited?
I have many Eclipse plugins in which I successfully create and delete markers, create quick fixes, and apply edits to the active editor programmatically. When text is inserted or deleted from the buffer all the text in the editor shifts, of course, and Eclipse's markers and my custom markers stay in synch with the text.
The problem is that when the file is edited, whether by regular typing or programmatically by changing the IBuffer, the attributes (e.g. CHAR_START) are not modified - they report the values when the marker was created and first made visible. So when one goes to do a QuickFix on the marker, for example, the reported position is incorrect. (This is an info marker, in CDT, if that matters.)
How are these marker positions supposed to be updated when edits happen?
Is there an Eclipse way to do this, but I need to implement some setting or notification or listener?
One possibility is to implement a ResourceChangeReporter - but it is not triggered for me when text edits happen, just when, for example, a save is invoked. And, if it were, I don't see information about how the file is actually altered.
I suppose I could require that a dirty file be saved before the quick fix is applied, but I still don't see where to obtain information about the file's edits. If I apply the edit programmatically, I know this information, but it does not help when the edit happens by typing.
Marker positions can be updated during editing using an updater declared using the org.eclipse.ui.editors.markerUpdaters extension point and implementing the IMarkerUpdater interface.
However there is a default updater org.eclipse.ui.texteditor.BasicMarkerUpdater which is already active for all markers which should be doing basic position updating for you.

Eclipse show number of lines and/or file size

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.