Livecode: script in the code editor is not color-coded - livecode

My script in the code editor is not color-coded. Only terms like "put" or "else" are shown in bold letters. Is this a problem in the settings? I've made a screen capture showing the script editor with uncolorized syntax

First check the colorization settings in the Preferences stack. Colorization may be set to none, default and Revolution Classic.
You may try re-installing LiveCode. Removing the preferences stack may also help (from the LiveCode settings folder, not from the IDE folder).

Go to menu Edit/Preferences on the main bar, you will see preferences stack then click on "Reset all preferences to default" button.

Related

Switch to tab by file name in text editor

I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!
If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.
You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.
All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.
CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".

How to remove code suggestion / help popup in sublime 3

I keep getting this annoying code help popup in sublime 3.
It seems to have only appeared recently. I'm not sure if it's part of sublime or some plugin.
Is there a way to disable this from showing?
EDIT:
Turns out this is to do with the package Naomi. Does anybody know if this is a configurable setting with this package?
you need to do following steps:
Go sublime Menu bar
select preferences
add this following code to user file and save it.
Blockquote
{
// Controls auto pairing of quotes, brackets etc
"auto_match_enabled": false,
// Enable visualization of the matching tag in HTML and XML
"match_tags": false,
}
I installed sublime, and disable completions popup by adding
"auto_complete": false
to the preferences.
You get to the preferences by: Menu Preferences -> Settings. There, you are supposed to edit the User Preferences file by adding custom prefs like the above snippet between the existing curly braces.

How to configure IntelliJ (also Android Studio) redo shortcut to CTRL+Y instead of CTRL+SHIFT+Z?

The default IntelliJ / Android Studio "Redo" action shortcut is CTRL+Shift+Z and this is a common problem for Windows users.
A bigger problem is CTRL+Y is mapped to the "Delete line" action - and this causes the undo stack to be lost.
To solve this issue, how can the "Redo" shortcut be changed to CTRL+Y in IntelliJ?
Open Settings (press CTRL+ALT+S)
Click Keymap on the left list.
There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can't change any of pre-defined keymap however we can copy, edit and then use the edited one. So) we should copy "default" to change only redo mapping.
Give a new name to your copied keymap.
Right click on:
Main Menu -> Edit -> Redo to click "Add Keyboard Shortcut"
Press CTRL+Y
Click OK
Click "Remove" to "the shortcut is already assigned to other actions. Do you want to remove other assignments?"
If you want to use any "remove line" shortcut also, then go to delete line shortcut and give to it any other shortcut (like 5th step)
Click OK to close settings window.
Change the keymap setting to the Visual Studio, Eclipse, or NetBeans preset.
The settings window can be found under File > Settings. CTRL+ALT+S should work if the shortcut hasn't been changed. In the settings window you should find Keymap under the Appearance & Behavior settings list.
You can configure each editor command to a key combo that you like (as #ismail yavuz mentioned) such as for Redo to CTRL+Y or you can just change the Keymap setting to an editor that you are used to. This might be best if you are in the process of switching to IntelliJ as it is probably the path of least resistance. The default settings for the Visual Studio, Eclipse, and NetBeans keymaps all map Redo to CTRL+Y.
The Principle of least astonishment is strangely violated for Windows users but at least shortcuts is customizable. Because of this command being so contrary to the Windows experience I decided it wasn't worth learning the IntelliJ keyboard when anywhere you're working at you need to, you can quickly change. There are almost no drawbacks to not learning the IntelliJ. Remember that in the keymap menu you can search for a command in the search box or click on the magnifying glass on the right to search by key combo.
Of course neither answer is wrong. Chose your preference.

How to change or add theme to Android Studio?

I have just installed Android Studio in my Window 7 64bit.
When I launch the application the background of the screen where we write the code is white.
I would prefer black or any other color.
I am not sure whether we can change the color/theme OR add more themes.
File->Settings->Editor->Colors & Fonts-> In scheme name select Darcula and apply to see a awesome dark background theme editor
Android Studio 3.1.2
File->Settings->Editor->Color Scheme-> In scheme name select Darcula and apply to see a awesome dark background theme editor
You can download new themes from https://github.com/sdvoynikov/color-themes -- note that the project is deprecated at this time, but the sources are still available.
Once you have downloaded the .jar file, go to File -> Import Settings... and choose the file downloaded.
//you need to go to the File-> settings
in that choose IDE settings-> Appearance in that choose the Theme: options
Windows
File->Settings->Editor->Colors & Fonts->
Mac OSX
Android Studio -> Preferences->Editor->Colors&Fonts
Dayle Reese has an amazing set of color schemes available for use in both AndroidStudio and Intellij. Depending on the IDE you are using, these ICLS files go into a particular directory (This is for Windows):
Android Studio
%USERPROFILE%/.AndroidStudio/config/colors
IntelliJ
%USERPROFILE%/.IntelliJIdea/config/colors
Once you've placed the ICLS files in one of the directories above, relaunch the IDE so that it picks up the new themes. There is also a nice page containing a preview of most/all the themes so you can figure out which ones you like most. Enjoy.
If one just need to change (strictly just) the editor's background to your own colour.
Preferences > Editor > Color & Fonts > General > Default Text > Background
Although you need to save it as your own theme.
Just a note for people in the future.
To add more themes on a Mac, put the theme .icls files in
~/Library/Preferences/AndroidStudio/colors/
Then restart Android Studio. And select your new themes in
Android Studio > Preferences > Editor > Colors&Fonts
Android Studio can use any theme that are made for jetbrains IDE. Here is a good Github repo that has many themes for different IDEs.
Also, the Color Ide plugin is a good tool that changes the background colour of all menus in Android Studio to match your theme. Try it, the IDE will look much better.
Windows should have similar setups, just the theme directory will be a bit different, search for JetBrains Ide theme location should give you the result.
Press Ctrl+` (Back Quote).
Then select "Switch Color Scheme" or press 1.
Select "Dracula" or press 2.
(Note: the exact paths shown here are primarily for Windows and Linux. I know Mac has a few non-standard paths, so if you're on Mac, you may have to adjust the starting bit of the path. The point is, get into settings however you'd do that on a Mac)
Switch theme:
File -> Settings-> Appearance & behavior -> Appearance.
Select the "theme" dropdown, and change between whatever themes you have installed. It shows the default themes and any you have installed in the form of plugins.
Install new themes
As plugin from plugins.jetbrains.com
File-> Settings -> plugins -> install JetBrains plugin/browse repositories/install plugin from disk
Note: newer versions of Android Studio, and possibly IntelliJ, (at least Jan. 2021 and out) may instead have a Marketplace tab in place of the first and/or second one.
The last part has three different options. The first has a few amount of plugins, and looks like only the official plugins. Browse repositories have much more plugins, and seems to be like going to the plugin page. This is a shorter way than going to the intelliJ plugin page and downloading the plugins manually. If you download, click install plugin from disk. This allows you to drag and drop, or find .jar files.
In the install JetBrains plugins, browse repositories, and (newer versions) Marketplace tabs should have a search functionality. You can search for i.e. "theme" from there.
Download a color theme you like - some sites host these, and some GitHub repos may offer them as well. [Editor's note: the website previously linked here has been replaced with spam]
Import the theme. File -> Import Settings. Navigate to the theme-name.jar. Click the "Ok" button. This will tell you restart your application, at least it did for me, and it automatically selected the theme for my editor.
Change the editor's theme color by going to File -> Settings -> Editor -> Colors & Fonts. Select the scheme and click the "Ok" button.
Note that this changes the editor's theme color, not the entire application's theme.
File->Settings->Appearance
There's a dropdown box with various themes.
Mac OS
To install new Theme on Mac go to Preferences -> Plugins -> Browse Repositories -> Select Category "UI" and search theme name, I recommend "Material Theme UI" click on the green button "Install" and then restart after installation.
If your theme is .icls format.
Right click on finder and select "go to folder"
type "~/Library/" to go to hidden library folder
find "Preferences"
find "AndroidStudio2.x"
if you don't have "colors" folder then create one
paste .icls theme files into colors.
new theme will be installed.
to change themes go to Preferences -> Editor -> Colors & Fonts and then select the scheme.
In 2.3.2 i can change the theme by following
View -> Quick Switch Theme -> 6.Look and Feel
Go to File > Settings,
now under IDE settings click on appearance and select the theme of your choice from the dropdown.
you can also install themes, they are the jar files
by
File > Import Settings, select the file or your choice and select ok
a pop up to restart the studio will open up click yes and studio will restart and your theme will be applied.
For additional themes I visited https://plugins.jetbrains.com/search?headline=164-theme&tags=Theme I was able to download one of them. I closed all my tabs opened and simply dragged and dropped the jar file. That was the way Android Studio prompted to restart. I tried importing the jar file as mentioned previously but it simply didn't work.
Thought I would add this as an answer, for anyone who accidentally mess up like I did!
It't not really an answer to the original question, but a few other posts refer to this post, so thought I would add it here (cause its slightly relevant to the question). Hope it helps someone!
Today I accidentally set my IDE font size on Android Studio very high (was going to set it to 10, but it accidentally became 110).
Now, the big issue for me was that opening the file menu was not possible (well, could open it, but could not get to the settings choice), so I had to figure out how to do it manually.
I found the Android Studio IDE settings in the Users/%username%/.AndroidStudioPreview/config folder and in there, the ui.inf.xml file, in which I could change the option FONT_SIZE back to a more manageable size.
Following image is android studio with 110 px font size on a 1920x1080 screen:
File->Settings->Appearance & Behavior-> Appearance and In theme select Darcula and apply dark background theme editor.
On OSX, in the menu bar at the top, click on Android Studio > Preferences > Appearance and you will see a theme drop down.
You can try this Making Android Studio pretty to change the android studio look and feel different.
To install Custom theme in android studio --version 4.1.2
download theme file(.jar) from https://plugins.jetbrains.com/
open android studio
drag the .jar file into studio
On Windows:
File-> Settings-> Appearance&Behavior-> Appearance:
Change "Theme field".
Simple. Just hit CTRL + alt + s - appearance & behavior - appearance - Theme - (Darcula)
You can use CTRL + SHIFT + A and then simply type theme to go directly to the theme settings. Same goes for pretty much any setting, refactoring or action you're looking for.
In Android Studio 3.4.2:
As mentioned in previous answers, you can change theme to Darcula in Appearance & Behavour > Appearance to have default dark theme.
Since macOS Mojave you can use dark mode in system. My issue was the system window bar was still light only for Android Studio:
Note there's an option to change this next to the theme selector: Use dark window headers
You can change or import a theme by using the icon that the "Duplicate Theme" arrow is pointing to in the photo.
Every one sees color differently. Most times a small change in contrast is all you need. Removing the hase from Dracula by changing the Background color to 242527 was perfect for me.
File - Settings - Appearance & Behavior - Appearance - CHOOSE Darcula in "Theme" - Press Apply.
or
Choose File - Settings - Editor - Colors & Fonts - Then SELECT Darcula in scheme name - Press Apply - restart Studio (sometimes not all elements implement theme)
Mac os : mojave / Android studio 3.5
mac os : Android Studio > Preferences > Editor > Color scheme > Scheme : Darcula
well most of these answers tell you about installing currrent theme , I will tell you the easy way to install new theme as of march 22 ,2022 .
while in android studio press ctrl + `
you may see this option switch
select Theme from the menu
then you will see themes installed .
change this or click on the last option 'install themes' to install new themes directly
Follow the steps :
Go to File -> Settings -> Appearance&Behaviour -> Appearance
Change the theme to whatever you like.
Then restart the android studio.
For easy reference in Android Studio 3.0.
Click File > Settings > Appearance & Behaviors > Apperance

Sublime Text 2: View working directory/directory of file

I think it would be nice to have the directory show up in the bottom status bar of the window. I can't find any sort of file info from the menu, so if I have the same file with the same name opened from two different directories, there's no way for me to tell which one I'm currently editing!
You can make sublime text to show the full path of the current file in the title bar by changing some settings in the preferences.
If you are on OS X add
"show_full_path":true,
to your user settings and check the same for the default settings.
On other system's it's there by default I guess, but you can always make sure. Hope this helps.
I found that hovering over a tab in this editor will display its path. This is quite sufficient for me (though having it always visible at the bottom would still be awesome!).
I have created a plugin to display the path of the currently opened view in the status bar. This helps when the window is in full-screen mode where you will not see the file path in the title bar (It never shows that for OS X anyway).

Resources