This is a rather simple done in Emacs or NEdit, but I could not find how to setup tab width in Komodo Edit (I use 7.1).
Komodo has a bug in the setting "Allow file contents to override tab settings". Here is the fix:
Go to: Preferences → Editor → Indentation. From this screen, turn off "Allow file contents to override tab settings" as this is very buggy and can cause Komodo to override your settings (hence the need to change the per-file-setting in other people's solutions)
From this screen, check all other tab settings, and check the per-language settings in the drop down.
Now close all files and after reopening them the settings should now take effect permanently. This is a better solution as you will no longer have to go to each file and constantly reset the per-file indent settings.
Go to the preferences page.
Depending on your display style - GTK style I think, the plus sign or what it is in front of the entry "editor" might be unvisible.
Either double click on "editor" to show the subtree, click into the free space in front of it (like sinking submarines), or search for indent or tab in the search bar.
There you will find the indentation setup details.
Related
When I run jupyter interactive windows, vscode code split the screen and put that tab on right side:
How can I make that kind of tab open on the left side?
Try the "workbench.editor.openPositioning" setting:
{
"workbench.editor.openPositioning": "left"
}
Or via the settings menu Editor Management → Open Positioning:
It would be the "workbench.editor.openSideBySideDirection" setting, but the only accepted values are right and down. You could perhaps make a feature request or look for an extension that might have the behaviour you need.
The Open Positioning setting is where new tabs open relative to your current tab. Whereas you are asking about editor groups.
For an example after I go to the Project tab with Alt+1 shortcut and open specific file with pressing Enter I then want to go and edit content with single shortcut. Is there any way to do it?
There is couple of things that I can use, but neither does exactly what I want:
Ctrl+Tab - that opens the switcher and selects next file in switcher instead of allowing me to edit file with single Ctrl+Tab
Ctrl+E or Ctrl+Shift+E do different things but basically the result is simmilar as above
What I want is to simply edit the file after opening it with keyboard from Projects tab (without using mouse).
How can I move focus from any other tool window to text editor in PhpStorm?
Just press Esc key.
Works in every tool window. For built-in Terminal though you can (may have to) configure different shortcut for such action (as Esc can be needed there).
For an example after I go to the Project tab with Alt+1 shortcut and open specific file with pressing Enter I then want to go and edit content with single shortcut. Is there any way to do it?
Use F4 for that (action is available in context menu and called Jump to Source).
Ctrl+Tab - that opens the switcher and selects next file in switcher instead of allowing me to edit file with single Ctrl+Tab
Just press and release it quickly: it works just like Alt + Tab on Windows. If you keep modifier key pressed (Ctrl in this particular case) it will keep the Switcher window opened.
I only have two scripts and one of them, not sure which, is causing an issue with a photo gallery on a certain site. I didn't write those scripts; they're both adblockers; I have no idea how to write scripts myself, so I don't want to tamper with them. Instead, since neither of those scripts are useful for the site in question, I'd just like to disable Tampermonkey as a whole or script-by-script upon entering that site. Is there a way to do that?
After setting "Config mode" to "Advanced":
you can either:
Click the userscript icon while you're in the said site → Utilities → Blacklist example.com. If you change your mind, you can go to Settings → Security → edit Blacklisted pages → Save.
(script-by-script) Click the userscript icon → click the arrow next to the userscript you want to disable → Exclude example.com:
If you change your mind, go to Tampermonkey's dashboard, open the userscript go to Settings → Includes/Excludes and edit "User excludes" accordingly:
Currently with PyCharm 2016.03, when I open new file, the tab opened at the end of the tab pane.
I google and see one old post about this - it was a open right next feature in the past and changed to open at the end now.
So if you know, if possible, how to switch tab-opening mode in PyCharm, please share!
That config is no longer available (at least in the 5.0.5 Pro version). You still have tabs appearance and closing policy configs under Editor -> General -> Editor Tabs menu, but no opening policy.
As a workaround you can left-click and drag a tab in whichever position you like.
Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document.
Thanks,
Kevin
Go to "Preferences" -> "Editor Defaults" -> "Auto-expand tabs," and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.
For docs that already exist you have to hit the "Text Options" button in the top of the editor window of the open document. In older versions, it's the button that looks like a "T" with a light switch next to it; with newer versions, it's a gear "⚙" icon. In that drop down there is the "auto-expand tabs" as well.
in version 4.5.5, there is 'Text -> Detab...', which pops up a requester for how many space per tab, preset for 4.
Go to Edit -> Text Options and tick Auto-expand tabs. This will make all the new tabs to change to spaces.
To change all current tabs to spaces as well, go to Text -> Detab and hit Detab.
Hope that helps!
For Mac, another easy way to check and enable "Auto-expand tabs" is to hit the gear button on top left.
You can also use "Normalize Options..." to set the text options of an already-open document to whatever you have set in your Preferences. This is useful for dealing with pre-existing code.
There are two places you need to set the settings for this to work. One is for previously opened documents, and the other for all documents to be opened or created in the future.
The Settings
set "Auto-expand tabs" to checked
set "Tab width" to 4
Previously Opened Documents
Click the "Text Options" button. It is in the top left of the editor window directly above the document view of the open document. In newer versions it's a gear "⚙" icon. And in older versions it is a "T" and light switch.
New Documents
go to preferences menu: BBEdit -> Preferences
choose "Editor Defaults" from the side-bar in Preferences