Tab size -- where to set?

Hello,
I have been trying to find where in the code editor options I can set the tab size. There is one for the SQL Formatter, but there does not seem to be one for the code editor. If there is one, where can I find it?
Either there should be a way to set the tab size for the code editor, or the code editor should respect the tab size and tab policy set in the SQL Formatter options.
Regards,
Janus Christensen

Bringing this one back up with some other additions.
There's, as said, no ability to set the tab size/length. SQL Developer also doesn't have options in relation to tabs like using tabs for auto-indent and it always replaces a press of the tab-key with a double-space. All of my present code uses tabs for indentation. IMO, it's easier to modify with tabs and if spaces start getting used in the files for tabs now then any other editor that supports tab length is going to generate odd formatting. (Lines that were indented with tabs will have the length of whatever it's set for in that environment while lines that use spaces will still have the 8 spaces).
Right now my work around is to turn off auto-indent and copy/paste a tab character in order to be able to use tabs for indentation.

Similar Messages

  • JTabbed pane, adjusting tab size where tab name is shown

    Hello,
    Does any one know if it is possible to adjust the size of a the tab which displays the name of the tab on a JTabbedPane? I know it will adjust horizontally automatically based on the String you provide for the title, what I want to do it adjust it vertically also. I tried using "\n Main Menu\n" as the title thinking that it would add two extra blank lines but this didn't work. Nothing in the API looks like it will do what I want either. Can anyone tell me if this is possible or if there is a work around?
    Thanks
    Mike

    I've never tried it on a JTabbedPane but check out the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/html.html]Using HTML in Swing Compoennts.

  • Set indention / tab size in Oracle SQL Developer

    I've been poking around for an hour. Can't figure this out.
    Where, either on the app's UI or in the "product-preferences.xml" file, can I change SQL Developer's indention (tab) size to 3? My organization uses PowerBuilder, and when I copy+paste our PB SQL (which uses leading tabs) into Oracle SQL Developer, it looks like crap. It would really help if I could change the code editor to a tab size equivalent to three spaces.
    And no, we can’t use spaces. :-)
    Thanks!
    (maybe SQL Developer 2 could have a tab size field in “Preferences”)

    In 1.5.x, it's under Preferences - Database - SQL Formatter - Alignment and Indentation .
    However, at least in the current 1.5.3, a bug ignores the tab preferences completely, so you're stuck with the 2 spaces. If you can't wait until this gets fixed (with luck in the upcoming 1.5.4 or else maybe by 2.0), revert to an earlier version.
    Regards,
    K.

  • Contact sheet: where to set size & can I print with another software?

    Using contact sheet for first time. nice! Blows away Photoshop just as the LR web galleries blow away all others.
    Question: I cannot find where to set the print size, I want to do 11x14
    Also can I save the file and print from Imageprint?
    The help page online talked about templates. I don't see them. Thank You.

    Thanks ... tried the Paper Handling, but no lock.
    Based on the fact that any scaling, "moves" the image down and to the left on the paper ...
    Th only "work around" solution is to ...
    Rotate the PDF page 180, then scale slightly (90% or so ...)
    This pushes the upside down page, down and to the left.
    While this is the opposite of what is desired, the print is then correct when
    it is punched and placed into a three ring binder.
    Assumption is the application that creates the documnt, needs to have the paper margins set. The reality is, an application like Preview, that does not "create anything", needs to handle existing documents PDF, JPEG and print to Custom Page configurations.
    ie: In Preview, Custom Page does not work correctly,
    Thanks allfor the comments and help ...

  • Trying to change the Tab size of SQL Server 2008 R2 ?

    Been trying to change the size of the tab but it just doesnt change!
    Went to Tools-Options-Text Editor-Transact-SQL
    From 2 to 1. 
    Any ideas? 

    Hi Shavendra,
    The Options dialog box lets you change the default behavior of the Database Engine Query Editor while you are programming Transact-SQL scripts. To display these settings, click Options on the Tools menu, expand the Text Editor folder, expand the Transact-SQL
    subfolder and then click Tabs.
    Tab size: Sets the distance in spaces between tab stops. The default is four spaces.
    Reference: http://msdn.microsoft.com/en-us/library/bb895215.aspx.
    Thanks,
    Maggie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.

  • How can I get the tabs back where they belong beneath the address bar , NOT on top ???

    how can I get the tabs back where they belong beneath the address bar , NOT on top ???
    they are on top, which puts the address bar at a variable position depending on how many tab rows exist - makes a moving target for navigating to across my dual 24 inch screens
    I tried your "solution" using about:config and setting browser.tab.on.top or whatever to false, but that had NO effect
    Maybe because TabMixPlus is installed?
    It does allow putting the tabs all the way at the bottom, but I don't like that either.
    PLEASE, give me the address bar at TOP with tabs under that!!!
    Also, I don't want FlashGot to be at the right of the address bar!!!

    why should we use yet another add on to get the tabs back at the bottom? Big mistake.
    Moreover, why make FF look more like Chrome? If I wanted Chrome, i would have installed it long time ago.
    FF 29.0 is NOT an improvement.
    Nasty piece of mud.

  • Determine preferred size to be set for the JPanel attached to JScrollBar

    Determine what preferred size to be set for the JPanel attached to JScrollBar.
    Hello all, I am having a JPanel, where new components will be added into it during run-time. When there are too many components inside the JPanel, I need to re-set the JPanel preferred size so that the JScrollBar is scrollable.
    I was wondering what is the good method to determine the preferred size of JPanel during runtime?
    Currently, I am using
    myJPanel.setPreferredSize(new Dimension(
    numberOfNewComponent * preferred width of each component,
    numberOfNewComponent * preferred height of each component
    ));Is there any better alternative?
    Thank you very much.
    yccheok

    Usually a container such as JPanel will calculate its own preferred size from its layout manager - calling setPreferredSize is often unnecessary.
    When you add a component to your JPanel its preferred size will change automatically.
    What's wrong with the behaviour when you simply add your JPanel to a JScrollPane and let it manage its own preferred size?
    Hope this helps.

  • Powershell ISE – change indent/tab size + keep tabs

    Anyway to change indent/tab size in Powershell ISE?
    Something simple like in Visual studio IDE:
    Tab size 2
    Indent size 2
    Keep tabs

    Figured I'd share the changes I made to NoSimDash's above code. I actually wrote this not long after he posted his reply, but decided not to post it after I settled on taking the cheap, hacky timer route. (Originally I was looking to have the process triggered
    by an event when the user changed tabs)
    Anyways, over the last two years it's been pretty stable, so I thought I'd share on the off-chance that someone goes looking for this functionality again.
    $psISE.Options.ShowOutlining = $true
    $psISE.Options.ShowDefaultSnippets = $true
    $psISE.Options.ShowIntellisenseInScriptPane = $true
    $psISE.Options.ShowIntellisenseInConsolePane = $true
    Set-Variable -Option AllScope -Name OptionSetter -Value (&{
    $ClassName = 'IndentFixer'
    $Namespace = 'ISEHijack'
    Add-Type @"
    internal class _Option<TValue>
    public _Option(string key, TValue value)
    Key = key;
    Value = value;
    public Object[] Params { get { return new object[] { Key, Value }; } }
    public string Key { get; private set; }
    public TValue Value { get; private set; }
    internal static object[] Opt<TVal>(string key, TVal value)
    return new _Option<TVal>(key, value).Params;
    internal static readonly object[][] NewOpts = {
    Opt<bool>("Adornments/HighlightCurrentLine/Enable", false),
    Opt<int>("Tabs/TabSize", 4),
    Opt<int>("Tabs/IndentSize", 4),
    Opt<bool>("Tabs/ConvertTabsToSpaces", false),
    Opt<bool>("TextView/UseVirtualSpace", false),
    Opt<bool>("TextView/UseVisibleWhitespace", true)
    internal void SetOpts()
    foreach(object[] args in NewOpts) {
    Setter.Invoke(Options, args);
    public MethodInfo Setter { get; set; }
    public object Options { get; set; }
    public Dispatcher EditorDispatcher { get; set; }
    public List<Action> Actions { get; private set; }
    public ${ClassName}()
    Actions = new List<Action>();
    Actions.Add(SetOpts);
    public void Dispatch(Dispatcher dispatcher)
    DispatcherFrame frame = new DispatcherFrame();
    dispatcher.BeginInvoke(DispatcherPriority.Normal, new DispatcherOperationCallback(ExitFrames), frame);
    Dispatcher.PushFrame(frame);
    private object ExitFrames(object f){
    DispatcherFrame frame = ((DispatcherFrame)f);
    // foreach(Action action in Actions) {
    // action.Invoke();
    // Actions.Clear();
    foreach(object[] args in NewOpts) {
    Setter.Invoke(Options, args);
    frame.Continue = false;
    return null;
    "@ -Name $ClassName `
    -NameSpace $Namespace `
    -UsingNamespace System.Windows.Forms,System.Windows.Threading,System.Reflection,Microsoft.VisualStudio.Text.EditorOptions.Implementation,System.Collections.Generic `
    -ReferencedAssemblies WindowsBase,System.Windows.Forms,Microsoft.PowerShell.Editor
    return `
    "${Namespace}.${ClassName}" |
    Add-Member -Type NoteProperty -Name Namespace -Value $Namespace -Passthru |
    Add-Member -Type NoteProperty -Name ClassName -Value $ClassName -Passthru
    [System.Reflection.BindingFlags] $NonPublicFlags = [System.Reflection.BindingFlags] 'NonPublic,Instance'
    filter Expand-Property
    PARAM(
    [Alias('Property')]
    [ValidateNotNullOrEmpty()]
    [Parameter(Mandatory, Position=0)]
    [String] $Name
    $_ | Select-Object -ExpandProperty $Name | Write-Output
    function Get-IsePrefs
    PARAM(
    [Parameter(Mandatory, Position=1)]
    [ValidateNotNullOrEmpty()]
    [string] $Key
    $oEditor = $psISE.CurrentFile.Editor
    $tEditor = $oEditor.GetType()
    $tEditor.GetProperty('EditorOperations', $NonPublicFlags).GetMethod.Invoke($oEditor, $null).Options | `
    Expand-Property GlobalOptions | `
    Expand-Property SupportedOptions | `
    Select-Object -Property Key,ValueType,DefaultValue | `
    Write-Output
    function Comment-Selection
    $output = ''
    $psISE.CurrentFile.Editor.SelectedText.Split("`n") | ForEach-Object -Process { $output += "# " + [string]$_ + "`n" }
    $psISE.CurrentFile.Editor.InsertText($output)
    function Fix-EditorIndentation
    PARAM(
    [Alias('ISEEditor')][ValidateNotNull()]
    [Parameter(Mandatory, ValueFromPipeline, Position=1)]
    [Microsoft.PowerShell.Host.ISE.ISEEditor]
    $Editor
    $EditorType = $Editor.GetType()
    $SetterInstance = New-Object -TypeName $OptionSetter
    $SetterInstance.Options = $EditorType.GetProperty('EditorOperations', $NonPublicFlags).GetMethod.Invoke($Editor, $null).Options
    $Dispatcher = $EditorType.GetProperty('EditorViewHost', $NonPublicFlags).GetMethod.Invoke($Editor, $null).Dispatcher
    $SetterInstance.Setter = $SetterInstance.Options.GetType().GetMethod('SetOptionValue', [type[]]@([string],[object]))
    $SetterInstance.Dispatch($Dispatcher)
    function Fix-IseIndentation
    [Microsoft.Windows.PowerShell.Gui.Internal.MainWindow] $ISEWindow = (Get-Host | Select-Object -ExpandProperty PrivateData | Select-Object -ExpandProperty Window)
    [Microsoft.Windows.PowerShell.Gui.Internal.RunspaceTabControl] $RSTabCtrl = $ISEWindow.Content[0].Children[2]
    [Microsoft.PowerShell.Host.ISE.PowerShellTab] $PSTab = $RSTabCtrl.Items[0]
    $PSTab.Files | Select-Object -ExpandProperty Editor | Fix-EditorIndentation
    function Invoke-ISEFunction
    PARAM(
    [Parameter(Mandatory, Position=1)]
    [Action] $ScriptBlock
    $ISEWindow = $(Get-Host | Select-Object -ExpandProperty PrivateData | Select-Object -ExpandProperty Window)
    return $ISEWindow.Dispatcher.Invoke($ScriptBlock)
    function Fix-IndentationForAll
    $psISE.PowerShellTabs | Select-Object -ExpandProperty 'Files' | Select-Object -ExpandProperty 'Editor' | Fix-EditorIndentation
    # Startup
    function New-Timer
    PARAM(
    [Alias('Handler')]
    [Parameter(Position=0, Mandatory=$true)]
    $Action,
    [Double]
    [Parameter(Mandatory=$false)]
    $Interval = 50,
    [Boolean]
    [Parameter(Mandatory=$false)]
    $AutoReset = $true
    [System.Timers.Timer] $oTimer = New-Object -TypeName System.Timers.Timer($Interval)
    $ElapsedEvent = Register-ObjectEvent -InputObject $oTimer -EventName 'Elapsed' -Action $Action
    $oTimer.AutoReset = $AutoReset
    return $oTimer
    $(New-Timer {
    Fix-IndentationForAll
    } -Interval 100 -AutoReset $true).Start()

  • Persistence Layer Analysis - where to set Maximum Number of tbale entries?

    Hi gurus,
    I need to increase this value. Can you please let me know where to set it up?
    Thank you. Olian

    Hi Olian,
    Open table SXMSPMAST in se11 and goto technical setting set the value Size Category to 6 or 7 from default value 4 according to ur req.
    Thanks!

  • JTabbedPane Tab Size & Spacing

    I have set up a JTabbedPane and have put icons in instead of text for the tabs, the icons I've designed are supposed to take the place of the tab look, I already have the tabs transparent. I was wondering if anyone could help me with tab size and tab spacing because my custom tabs are WAY too far apart. Thanks in advance.

    I figured it out, I made a custom UI class that extends BasicTabbedUI and set the constraints that I desired.

  • Where to set Mapped Primary Table

    I am using sunOne studio 4 update 1, EE.
    I have created a schema by doing New->Database->Database Schema, all OK.
    I have then created related ejbs by doing New->J2EE->Related CMP Entity EJBs, all OK.
    Now I want to view the mapping information so
    I look at the CMP bean entry properties under the EJB module but I see no mapping information in Sun ONE AS Mappings tab. !!!
    When I try to edit the protected field I get warning indicating that bean must have a valid Mapped primary table. It tells me to set a Mapped Primary Table in the main properties sheet for this bean.
    My problem is I can not find this sheet
    Please help before I go crazy
    Thanks in advance
    Tex...

    OK I know where to set these fields now.
    It is set in the Sun ONE AS tab pane.
    However, here comes the next problem.
    The Wizard generated schema does not recognise the primary key fields so I can not map CMP to any table :-)
    I think this is a bug because I have generated schemas from 3 different databases (IBM, MySWL, SAP) and the tables have primary key fields.
    When I get a connection in Runtime Pane under Database node, I can see the primary fields are highlighted with red color.
    However, when I obtain the schema using, New->Database->Database Schema, there are no key fields generated.
    Anyone have any ideas, work around?
    Thanks
    Tex...

  • How to change tab size on Jtabbedpane?

    Hi,guys,
    I want to set an icon on each tab,so my code is as follows:
    ImageIcon projectIcon= createImageIcon("bleumbuddy/workorder-tab2-active.gif");
    jTabbedPane1.addTab("",projectIcon,jPanel7);
    But the tab size is bigger than the img's size,How can I change it to the same as the image?
    thanx a lot .
    Best Regards
    Dragon

    Hi,guys,
    I want to set an icon on each tab,so my code is as follows:
    ImageIcon projectIcon= createImageIcon("bleumbuddy/workorder-tab2-active.gif");
    jTabbedPane1.addTab("",projectIcon,jPanel7);
    But the tab size is bigger than the img's size,How can I change it to the same as the image?
    thanx a lot .
    Best Regards
    Dragon

  • TabStripLayout-View: Where to set the text?

    Hello,
    I am using a view of the kind TabStrip. For your understanding> Not a normal view with a tabstrip. It is a view similar to Gridlayout, just TabStripLayout.
    I can not find where to set the text for the individual tabs, e.g. TAB1, TAB2 etc.
    Does anzbodz know?
    Regards Thank Mario

    I assume you are using a TabStrip layout of a viewset.  The tab 'captions' are set in the properties for the viewset.  In the explorer outline, expand Windows and click on the ViewSet and in the properties for the ViewSet it will have the captions listed for the tabs and you can change the text there.
    Be aware that the tab strip layout for viewsets is a bit limited.  As far as I can tell the navigation plugs between views do not work.  There are other forum questions/answers on how to use a normal TabStrip element rather than a viewset to get around this.
    -Cindy

  • The area at the top of Tab bar where i would type in the webpage is gone, how do i get it back

    the area at the top of Tab bar where i would type in the webpage is gone, how do i get it back?

    MacBook Pro, Mac OS X (10.7.4)  < your profile
    If that is correct, updating your system software may help the Safari toolbar issue.
    Click Software Update from your Apple menu OR open System Preferences > Software Update > Check Now
    Restart your Mac after the updates are installed then try Safari.
    If your software is actually up to date, from the Safari menu bar click Safari > Preferences then select the Extensions tab.
    If you have any extensions installed, turn that OFF, quit and relaunch Safari to test.
    If the address bar reappears, uninstall one extension at a time, quit and reluanch Safari to test until you find the one that's blocking the address bar.

  • How can I find out if the rollback optimal parameter size has been set ?

    What is the command to find out if the rollback optimal parameter size has been set? And what is the command to find out what is the rollback optimal parameter set to?

    You can find the OPTIMAL size in v$rollstat.optsize

Maybe you are looking for

  • Interactive report: Can I exclude a particular column from single row view?

    Hi -- I posted on this yesterday (Possible to exclude interactive report column from single row display? a bit anxious for suggestions, I guess! I've added a column with edit-link functionality to my interactive report query (that is, the link is not

  • Problem in Cancelling Excise Invoice

    We create excise invoice for both exports and local sales for manufacturing items. But the problem is we maintained same number range for both objects: J_1iexcloc , J_1iexcexp     (i dont know how system accepted). So same excise numbers are allocati

  • Installing Elements 11 on Mac. Need help with install error "Setup wants to make changes."

    Installing Elements 11 on Mac 10.8.2. Need help with install error:  Setup wants to make changes. Type your password to allow this."  After entering Adobe password, nothing happens.  Locked from further installation.  Any ideas?  Adobe phone support

  • HP 2207h monitor

    I thought today was "pro day"... Thanks...

  • Display the totals only at Material level in ALV

    Hi........, I am calculating the subtotals and totals. I am having the columns Company Code , Plant and Material etc. First I did sort on table as : gr_sorts = gr_table->get_sorts( ).   gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_true )