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.
Related
The editor for the GUI is a complete mess. When I create a brand new script, the spacing and font are relatively ok.
However, if I open any existing function, it is shown with way too much space between lines, and spaces and tabs show way more space than they should. An example is shown below:
I tried selecting the Edit - Preferences - General - Use custom file editor options, and chose "notepad++ -n%l %f. I have notepad++ installed already on my computer.
When I selected this option and clicked ok, the Octave GUI crashed. When I tried to reopen a file now, I get the error "could not start custom file editor".
If I change the font, it temporarily fixes the issue. But none of the changes persist. Often clicking OK crashes octave. And any time it's reopened, the fonts revert to default, and the spacing problems returns.
How can I make the editor show an appropriate leading and space width?
I would also like to be able to further customize, if possible. For example I'd like it to use a dark theme. But for now just showing a reasonable space between lines would make this at least useable.
I'm using Windows 10, Octave version 6.4.0
I'm using 2 monitors. On the 2nd one, I have the Delphi IDE, using the Classic undocked settings.
There is a white vertical line in the middle of the IDE cutting through the source code. I can't seems to find the option in the settings to remove it.
That line is the Code Editor's "Right margin". You can turn that on/off in the Display section of the Code Editor settings, or you can set how many characters from the left edge of the editor you want the line to appear (the default is 80 chars).
See Customizing the Code Editor for more details.
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".
I'm looking at converting one of our applications to Delphi XE2 and generally take the opportunity to bring it up to date.
One of the features of the application is a StringGrid that displays a number of check marks in a couple of columns. To achieve this the grid is actually 2 aligned grids - the second of which is setup with the font as Wingdings in order to display the check marks.
Am I wrong in thinking that I should be able to use something like a TListView and use the checkmark char (U+2713) alongside the rest of the text... If so how the heck do I do this?
Do I need to set the font to Wingdings for that column? Does this need to be in OnDraw?
Am I barking up the wrong tree...
File->New->VCL Forms application
In the Component Palette, expand the Win32 tab and choose TListView, and drop it on the form.
Right-click the newly added TreeView1, and choose Items Editor... from the context menu.
Click New Item. Type in any text (for instance x Testing, using the 'x' as a placeholder for now).
Start the Windows Character Map application (Start button, type Chara in the search box, or Start->Programs->Accessories->Character Map). Change the font to Arial Unicode MS, and navigate to the character you want (it's in there).
Click the character, and then the Copy button. Switch back to the IDE, select the x placeholder you put in the edit, and hit Ctrl+V to paste the character you just chose from Character Map. You should now see your check mark (or whatever character you chose), followed by Testing.
(The steps above are the two-minute process I followed to find out how to do this, and that quick experiment showed that you could.)
I'm currently learning iOS development from scratch, and as such, I'm making lots of new projects. Every time I do so, I have to resize the Xcode window (I don't want it maximised, but I don't want it as tiny as it makes it), and I also have to pop open the Utilies and Debug areas, as well as dragging the Objects library up to make it larger. Can I set some defaults in Xcode to do this for every new project?
No, Xcode doesn't include all these options, but you can get part way there. You can setup a behavior that shows or hides the parts of an Xcode window such as the utilities, the toolbar, the debugger, etc. Then it's one menu selection or key command to show the parts, and a little dragging to resize things.
To make a behavior select Behaviors>Edit Behaviors... from the "Xcode" menu in Xcode. Create a new behavior by clicking the "+" symbol near the lower left corner. Give your behavior a name and optionally a key command. Set the options in the behavior to show or hide the parts you want shown or hidden, and maybe even take some of the other available actions.
To run the behavior just select it from the "Behaviors" submenu of the "Xcode" menu, or press the appropriate key command combination.