How to change UI language in Visual Studio Code (1.0 released April 2016)?
Open VScode
Press F1 and type 'display'
Choose 'Configure display language'
Select your language. On top are installed languages, below are other languages. The one you select will be installed as an extension.
Accept to restart.
you can see that the language you choose has been added to the extensions by selecting 'extension' icon on the left toolbar (look for 'xxx language Pack')
More info Here
Previous original answer (for older vscode):
Open VSCode
Press F1 and type 'language'
Choose "Configure language" in the menu
Change the 'locale' value. See 'here' for available languages.
Example: "locale":"en-US"
Save
Restart vscode
Since my Chinese (or whatever language this is in your screenshot) is pretty bad I describe how to set the display language to american English without using VSCode.
Close VSCode
Open the file locale.json with a text editor (I suggest not to use VSCode).
On Windows the file is located under C:\Users\UserName\AppData\Roaming\Code\User
On Linux it's under $HOME/.config/Code/User
On a Mac it's under $HOME/Library/Application Support/Code/User
Change the file content to
{
"locale":"en-US"
}
Open VSCode again
See "Display Language" https://code.visualstudio.com/docs/getstarted/locales
I had trouble with this and the answer from Eric Bole-Feysot did not help as it is missing an important step.
Open VS Code
Press F1
Type "configure display language"
Select "configure display language" from the options displayed beneath the inputbox
Change JSON to
"locale": "en-US"
Close window and be prompted to save.
Re-start VS code
Hope that helps.
For Windows user,
Go to following folder,
C:\Users\UserName\AppData\Roaming\Code\User
Edit locale.json or create it, if not exist with following content
{
"locale":"en"
}
Supported locales can be found in the following links
https://go.microsoft.com/fwlink/?LinkId=761051
Cheers
Preferences->Extension
search "LanguageName Language Pack"
(example) "English Language Pack"
Install
Please refer to VSCode Display Language.
Change language for temporary folder
click: File->Preferences->Settings, User seting json file will open and add " "locale"="en" ", save the file and restart.
Or you can use a command: >>> code . --locale=[lang] (lang refer to language code)
Permanently change language
Press Ctrl+Shift+P to bring up the Command Palette then start typing "config" to filter and display the Configure Language command. Add " "locale"="en" " into the Jason file, save and restart
In Visual Studio Community for Mac 7.0 go to
Settings->Visual Style->User Interface Language
For mac OS user:
At $home/Library/Application Support/Code/User,
create a new file with name "locale.json" (it wasn't there for me), and type:
{
"locale": "en-US"
}
Worked for me. The latter part is the same to others' answer I guess, just there wasn't "locale.json" for me so I tried creating it myself, found it worked.
As a Ubuntu user, the only option that seemed available to me was to start Visual Studio Code at the command line, explicitly specifying the language:
code --locale en
(The interface had been in French, due to the language I'd applied for my operating system. I'm trying to learn French, but having VSCode in French was a bit much, I still need to earn money writing software đ)
https://code.visualstudio.com/docs/getstarted/locales
Related
How can I change the language of the IDE "Geany" to English, And how change the theme to black
And thanks.
The answer is given by the Geany FAQ and I quote,
How can I change the language of the user interface? On Windows
The easiest way to use English instead of your system's locale is to
deselect the "Language Files" (a.k.a translations) option when running
the Windows installer. Then no translation files are installed and
Geany will use English as language.
And,
On non-Windows systems
Simply start Geany like this:
LANG=C geany
And in case you cannot reinstall geany for some reason,on windows you can do something like this:
cmd.exe /c "set ^"LANG=en^" & start /D ^"C:\installed-path\Geany\bin\^" geany.exe"
Check our that link for further possibilities.
p.s. it helps sometimes to generalize a question, like "How to change the language of Geany", I think.
In the 'c:\Program Files\Geany\share\locale' folder you can delete all folders with localization files (or move them to another location, just in case), leaving only the English localization - folders 'en', 'en # boldquot' , 'en # quot', 'en # shaw'
The next time you start Geany, it will start up with an English interface.
To change the theme to black, you need to select the 'View' menu item and select 'Change Color Scheme'. In the window that appears, you can choose a theme to your liking - the interface changes interactively.
Not sure if this is the right forum, but here it goes....
Problem Description in Brief:
I am not able to enable ctfmon.exe to execute (and to remain running) on Startup under Windows 7 Professional (SP1). I need this for the language bar on the taskbar, and the ability to switch between Chinese and English.
Problem Description in Detail:
When I installed Windows 7 Professional on my ASUS laptop, I enabled the language bar so that I can switch between Chinese and English, with the default language being Chinese (for my wife). Everything worked fine, even after installing Microsoft Office 2010, which apparently relies on ctfmon.exe for the language bar services. When I uninstalled Microsoft Office, not only did I lose the language bar, but the ability to switch between Chinese and English. The only language supported now on Startup is Chinese.
Needless to say that the option to enable ctfmon is not available under the Starup tab of msconfig. In order to enable the language bar, again, I have to manually change it via the Control Panel, only to lose it, again, every second time I shutdown and/or restart the laptop!!! It is ##$%ing annoying to say the least!!!
Note that, the language bar driver (ctfmon.exe) still resides in the C:\Windows\System32\ directory according to many of the forums I have read. I have even added a Windows registry entry to execute it at Startup according to one of the posts in the Microsoft TechNet site, titled Language Bar Disappeared, and another UK site titled Startup Details - ctfmon.exe, which believes the entry should exist under HKCU as opposed to HKLM. Specifically, I added the following entries to the Windows Registry File without any effect.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"ctfmon"="C:\Windows\System32\ctfmon.exe"
and,
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"ctfmon"="C:\Windows\System32\ctfmon.exe"
Since msimtf.dll and msctf.dll are related to the language bar service, I tried enabling those using regsvr32. Although they were successfully loaded, it did not have any effect on the language bar. I even tried to execute ctfmon.exe at the command prompt! It still did not activate the language bar like it is supposed to according to many of the forums I visited relating to this problem.
Short of reinstalling Microsoft Office and/or reinstalling Windows 7 Professional, any advise/suggestions on how to resolve this problem would be appreciated.
Follow the instructions below to run ctfmon automatically on Windows startup process.
Click Windows 7 start button.
Type: regedit
Open it with administrative rights.
Goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Create a new string value
Name it as you wish
Open it for edit
Type âctfmonâ=âCTFMON.EXEâ in Value data field
Press OK
Restart your computer
Now you can see the language bar :)
Do not worry. You may try this step.
Press Windows along with R ( Windows + R ) and then run box will appear then type the path on the run box..
C:\Windows\System32\ctfmon.exe
Then press enter.
I have two languages set in my windows settings - Czech (default) and English (for programming). I want to switch between them in powershell.
I generally work in Czech language, and it is my default language on my PC. So whenever I (re)start any app, it starts with Czech keyboard layout.
But I am programming with English layout. So I always need to tap Alt+Shift when I am starting new programming app - i.e. powershell window.
Is there some way to do this with some command in powershell? Or in C#, possibly through some win32 api call (as I could make myself small cmdlet for this)?
I found this question (and some others), but I didn't understand it(them) much...
I never worked with Win API, so I don't know what exactly is possible and how to work with it...
Does somebody has some cmdlet or little tutorial how to do this?
I found nice and very easy solution! There is WASP project on Codeplex. This project allows to manipulate windows, send keys to them and send clicks to them.
Solution for my problem is to import the WASP module when powershell is starting, then select powershell window (using WASP) and send Alt+Shift keystroke to it (using WASP).
Here is the code to include to the powershell profile.ps1 file in order to change language to the next one:
Import-Module WASP
Select-Window powershell | Send-Keys "%+" # '%' = ALT key, '+' = SHIFT key
Go to the Control Panel, open Regional and Language Options.
Click the Details...
Click Add and Remove to manage the languages you need.
add your language. Click OK to exit.
The keyboard layout is changed, you can switch them via Language Bar.
you can also check this link:
http://krypted.com/commands/powershell-commands/
First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax. The same command works in HTML, CSS, Javascript, C#, etc.
I have tried plugins for ST2 and so far I've found most don't work on a Windows box and if they do, it's for a very specific purpose like just Javascript.
I have tried (and opened Issues where appropriate):
https://github.com/victorporof/Sublime-HTMLPrettify
https://github.com/jdc0589/JsFormat (this one actually works)
https://github.com/welovewordpress/SublimeHtmlTidy
Have any Windows users of ST2 found anything that works to format CSS/HTML/Javascript, preferably in one shot?
Edit: Since this question is getting lots of views with no activity, I'll say that I am still looking for a plugin that can format various script types within the same command.
October 2013
Still haven't found anything that covers JS+CSS+HTML well however I have settled on JsFormat as by far the most effective and bug free with the least amount of configuration for just JavaScript.
A similar option in Sublime Text is the built in Edit->Line->Reindent. You can put this code in Preferences -> Key Bindings User:
{ "keys": ["alt+shift+f"], "command": "reindent"}
I use alt+shift+f because I'm a Netbeans user.
To format your code, select all by pressing ctrl+a and "your key combination". Excuse me for my bad english.
Or if you don't want to select all before formatting, add an argument to the command instead:
{ "keys": ["alt+shift+f"], "command": "reindent", "args": {"single_line": false} }
(as per comment by #Supr below)
Sublime CodeFormatter has formatting support for PHP, JavaScript/JSON/JSONP, HTML, CSS, Python. Although I haven't used CodeFormatter for very long, I have been impressed with it's JS, HTML, and CSS "beautifying" capabilities. I haven't tried using it with PHP (I don't do any PHP development) or Python (which I have no experience with) but both languages have many options in the .sublime-settings file.
One note however, the settings aren't very easy to find. On Windows you will need to go to your %AppData%\Roaming\Sublime Text #\Packages\CodeFormatter\CodeFormatter.sublime-settings. As I don't have a Mac I'm not sure where the settings file is on OS X.
As for a shortcut key, I added this key binding to my "Key Bindings - User" file:
{
"keys": ["ctrl+k", "ctrl+d"],
"command": "code_formatter"
}
I use Ctrl + K, Ctrl + D because that's what Visual Studio uses for formatting. You can change it, of course, just remember that what you choose might conflict with some other feature's keyboard shortcut.
Update:
It seems as if the developers of Sublime Text CodeFormatter have made it easier to access the .sublime-settings file. If you install CodeFormatter with the Package Control plugin, you can access the settings via the Preferences -> Package Settings -> CodeFormatter -> Settings - Default and override those settings using the Preferences -> Package Settings -> CodeFormatter -> Settings - User menu item.
I can't speak for the 2nd or 3rd, but if you install Node first, Sublime-HTMLPrettify works pretty well. You have to setup your own key shortcut once it is installed. One thing I noticed on Windows, you may need to edit your path for Node in the %PATH% variable if it is already long (I think the limit is 1024 for the %PATH% variable, and anything after that is ignored.)
There is a Windows bug, but in the issues there is a fix for it. You'll need to edit the HTMLPrettify.py file - https://github.com/victorporof/Sublime-HTMLPrettify/issues/12
Maybe this answer is not quite what you're looking for, but it will fomat any language with the same keyboard shortcut.
The solution are language specific keyboard shortcuts.
For every language you want to format, you must find and download a plugin for that, for example a html formatter and a C# formatter. And then you map the command for every plugin to the same key, but with a differnt context (see the link).
Greets
I am using InstallShield 2008 Premier Edition and I have created a multilanguage setup. When I install the setup in language other than English (e.g. in French) it clearly shows all labels and messages correctly.
The problem starts when I run the generated setup.exe file again. It should show the Modify/Repair page in the language that was selected during install (i.e. in French) but it is always showing in Default Operating Language (English in our case).
However if I click the uninstallation icon on the Start-up menu it is showing in the language which I have installed (i.e. French).
Our requirement is that in both cases it should be same language (i.e. french) but this is not the case.
I haven't tried, but maybe you could change the uninstall command to include the parameter to set the language (see http://helpnet.acresso.com/robo/projects/installshield11helplib/IHelpSetup_EXECmdLine.htm , look for /L) and add that to the uninstall command that installshield sets up under "Software\Microsoft\Windows\CurrentVersion\Uninstall\" + PRODUCT_GUID . It does feel a bit hackisch, I'd really expect Installshield to do this automatically.