How to mass convert all spaces to tabs in Xilinx Vivado - xilinx

How do you convert an entire HDL file from spaces to tabs in Xilinx Vivado?
I've given my own answer below but won't vote on it one way or the other.
Is there a better way that anyone knows?

To convert an entire HDL module in Vivado from spaces to tabs:
Set the environment to use the tab character when the tab key is struck (in lieu of four spaces).
Indent the entire HDL file in the text editor by highlighting everything and pressing the Tab key.
De-indent the entire HDL file by highlighting everything and pressing Shift-Tab.
To change to Tab mode in the first place, select the Tools->Settings menu.
On the left side of the settings window that shows up, under Tool Settings, click the carrot next to the Text Editor to reveal the options. Then click on the Tabs label to reveal the Tab options panel.
Check the box that says "Use Tabs Character".

Related

Issue with Delphi Menu

I am Using RAD Studio 2010 and I have problem in Menu text
There are Z and Y texts in my menu and I want to remove it
This will happen when I use Non English text
This is because of TMainMenu.AutoHotkeys. By default, the value of this property is maAutomatic, which means that the menu will automatically choose accelerator keys for your menu items.
For instance, in a typical English application, you might get a menu like this:
Notice the underlined characters. These are used to access the menu using the keyboard. For instance, to open the File menu, I can press Alt+F. And once the File menu is open, I can press the key corresponding to the underlined character in the caption of the menu item I wish to invoke.
For keyboard users like myself, such accelerators are extremely important. I use them all the time. I could use the mouse instead, but that would slow me down tremendously. (For instance, in the application in the screenshot, I am very used to press Alt+E, O to open the Sort Lines dialog box. That takes about 0.2 seconds. If I had to use the mouse, it would take much longer!)
Now, in your case, there aren't any Latin letters to underline, so instead the RTL adds these parentheses (with the Latin letter being the accelerator), so you still can access the menus using the keyboard.
I have very little experience with non-Latin-based versions of Windows, but I do believe menus like these are standard. If I were a Chinese or Arabic user (for instance), I think I would refuse to use an application without these. If I cannot access GUI menus and controls with the keyboard, I get really annoyed.
Still, if you insist, you can set AutoHotkeys to maManual.

Removing Project Symbol Search button

Is it possible to remove or disable the Project Symbol Search button from the Dephi (10.2) editor. It is the magnifying glass on the far right in the image below.
It is a nuisance to me because I keep pressing it instead of the dropdown arrow on the Methods combo box next to it (because my hand co-ordination is poor) and it freezes the IDE for 20-30 seconds.
In Tools > Options > Editor Options > Display there is only an option to turn off the hole toolbar ("navigation toolbar").
The toolbar is not even mentioned in the docs for the options dialog!
But at least you can find information about it here and here in the docs.

Is it possible to move single open file between panes in VS Code?

I want to have the openned in VSCode file moved from one pane to another. Just like in Sublime ctrl+shift+1 / ctrl+shift+2. What command is in charge of this?
split editor vertically (the second pane is empty), I do this by workbench.action.editoLayoutTwoColumns
move current open file from the first pane to the second
Open the command palette and search for View: Move Editor into to bring up related commands. In this case, you might be specifically looking for the following:
Command
Move Editor into Next Group
Shortcuts
Mac: ctrl+cmd+right
Windows/Linux: ctrl+alt+right).

Sublime Text: Larger tab sizes?

For assembly sources, it is sometimes useful to use tab and indentation settings larger than the default maximum of 8. I'd like to have that at 10.
Is this possible with sublime, and if yes, how?
Yes, you can set "tab_size": 10, in your syntax specific settings.
Open an assembly file, then the Preferences menu -> Settings - Syntax Specific and add the preference in the pane on the right hand side, and save.
Now, pressing Tab will insert 10 spaces, and the indent guides will also be lined up every 10 spaces.
You may wish to also set "detect_indentation": false, in the preferences to ensure that Sublime Text uses this tab size for all assembly sources.

Aligning left and right on the same line in WordPad

Is it possible to align texts left and right on the same line in WordPad? For example, I want my name to the left and the date to the right. Both on the same line. How can I do this?
While WordPad does not allow you to modify the alignment of tab stops the RTF format supports tab stops with alignments and WordPad can display and edit documents containing such tab stops, for example when you create them in Microsoft Word and save as RTF.
If you don't have access to Microsoft Word you can create the tab stops in WordPad, save the file as RTF, then open it with a text editor and modify the tab stop definitions you are interested in.
Here is an example:
I created a simple RTF document in WordPad which contains the text Left<tab>Middle<tab>Right and created two tab stops. I want the first tab stop to align centered and the second tab stop to align right.
Then I save the document in RTF format on my desktop and open it in notepad. It looks like this:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1031{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Riched20 10.0.14393}\viewkind4\uc1
\pard\sa200\sl276\slmult1\tx3976\tx7242\f0\fs22\lang7 Left\tab Middle\tab Right\par
}
Notice the \tx3976 and \tx7242 commands which define the tab stop positions (generally you look for \tx followed by some number).
Now you can insert the \tqc command for center-aligned tabstops or the \tqr command for right-aligned tabstops. You enter that command in front of the \tx command you want to modify. The RTF document now looks like this:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1031{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Riched20 10.0.14393}\viewkind4\uc1
\pard\sa200\sl276\slmult1\tqc\tx3976\tqr\tx7242\f0\fs22\lang7 Left\tab Middle\tab Right\par
}
Now you can save the document and exit notepad, when you reopen the file in WordPad you should see it displaying with the correct tab stop alignments. It is also possible to move the tab stops around in WordPad without losing the alignments.
Tested on Windows 10 but it probably will work on earlier versions of WordPad since the required commands are not exactly new.
It's not possible using proper formatting.
For example, in Microsoft Word/LibreOffice Writer you'd use left- and right-aligning tabs, as demonstrated in this howto for Word. However, WordPad only has left-aligning tabs.
It is possible to fake it, as it was done in the old days (and still now, by those who don't know better), by clever usage of spaces (or a mix of spaces and tab stops).

Resources