OSX + PhpStorm: Disable non-breaking spaces - macos

How can I remove the non-breaking spaces that appear when I click Shift + Alt + Space? They are really annoying when writing code since they produce errors.
I have tried adding the following to DefaultKeyBinding.dict:
{
"~ " = ("insertText:", " ");
}
I would like it to work in both Coda + PhpStorm. Thanks!

Related

neovim plugin installed but not loaded

I switch from VSCODE to neovim because I need free ram but neovim alone is not good as VSCODE not color no snippet, I installed plugins using vim plug but I have to trigger the plugins every time I use neovim by type "PlugInstall", when I quit neovim and back aging nothing there so I need to run "PlugInstall" again, how can I use the plugins without running "PlugInstall" here is my init.vim:
:set number
:set mouse=a
:set smarttap
:set autoindent
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'
" Declare the list of plugins.
Plug 'vim-airline/vim-airline'
" Visual Settings
Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim'
" Color theme plugins
Plug 'joshdick/onedark.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files
Plug 'scrooloose/nerdcommenter'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
cell plug#end()
"""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
colorscheme onedark
"""""""""""""""""""""""""""""""""""""""""""""""""
" Visual Settings
"""""""""""""""""""""""""""""""""""""""""""""""""
" For Goyo
let g:goyo_width=85
" For LimeLight
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
" Color name (:help gui-colors) or RGB color
let g:limelight_conceal_guifg = 'DarkGray'
let g:limelight_conceal_guifg = '#777777'
" highlight line
let g:limelight_bop = '^.*$'
" let g:limelight_eop = '\n'
let g:limelight_paragraph_span = 0
"""""""""""""""""""""""""""""""""""""""""""""""""
" UI Settings
"""""""""""""""""""""""""""""""""""""""""""""""""
" Keep cursor in the middle of the page, useful for editing text
set so=999
" Turn limelight on by default
" autocmd VimEnter * Limelight
" Turn Goyo on by default
autocmd VimEnter * Goyo
" autocmd VimEnter * AirlineToggle
" In Goyo, if airline is turned on, do nto show scratch area
" autocmd! User GoyoEnter nested set eventignore=FocusGained
" autocmd! User GoyoLeave nested set eventignore=
I use MX-Linux
you have "cell plug#end()", it should be call plug#end().
Maybe that is the origin of the problem or did you copy it wrong?

How to change the color of the dropdown that appears with ctrl + shift + p in VSCode

I was trying to edit some themes on my Vscode but got stuck at this point since I don't know what this section is referred as, that we pop up by ctrl + shift + p
"workbench.colorCustomizations": {
"editor.background": "#101a29",
"sideBar.foreground": "#CAC9C9",
"sideBarSectionHeader.foreground": "#CAC9C9",
"editorGroupHeader.tabsBorder": "#c93e71",
"editor.selectionBackground": "#ff6d6d32",
"editor.wordHighlightBackground": "#ff6d6d32"
},
I've did these many changes so far.
Primarily that is the quickInput so
"quickInput.background": "#f00"
will work. If you don't style the quickInput then the more generic editorWidget will also work but will also style other things, like the Find Widget.
"editorWidget.foreground": "#000",
"editorWidget.background": "#a8c0a8",

Xamarin.Forms VoiceOver in two vertical stacks

I do have one hozitontal StackLayout that contains two vertical StackLayouts. When I turn on VoiceOver it reads by rows not by stacks. Is there any solution? I also tried that in Grid but problem was same... ty
I solved my problem by using
AutomationProperties.SetIsInAccessibleTree(myStackLayout, true);
AutomationProperties.SetName(myStackLayout, Title + " " + Value + " " + Unit);
it reads well whole control at once
source: https://blog.xamarin.com/accessbility-xamarin-forms/

sublime text 3 mac- comment selected part

How to comment the selected or the highlighted text in sublime text 3 on a macbook.
Cmd + /
will comment out the whole line and not the selected part - should I just create a key mapping for this or is there an existing mapping??
To block comment a selection the command is ( option + command + / ):
⌥ + ⌘ + / 
Example:
{
"shell_cmd": /*"make"*/
}
↳ Sublime Keyboard Shortcuts - OS X

How to convert a selection to lowercase or uppercase in Sublime Text

I have several strings selected in a file in Sublime Text and I want to convert them all to lowercase.
How can I convert them all to lowercase in Sublime Text?
From the Sublime Text docs for Windows/Linux:
Keypress Command
Ctrl + K, Ctrl + U Transform to Uppercase
Ctrl + K, Ctrl + L Transform to Lowercase
and for Mac:
Keypress Command
cmd + KU Transform to Uppercase
cmd + KL Transform to Lowercase
Also note that Ctrl + Shift + p in Windows (⌘ + Shift + p in a Mac) brings up the Command Palette where you can search for these and other commands. It looks like this:
For Windows:
Ctrl+K,Ctrl+U for UPPERCASE.
Ctrl+K,Ctrl+L for lowercase.
Method 1 (Two keys pressed at a time)
Press Ctrl and hold.
Now press K, release K while holding Ctrl. (Do not release the Ctrl key)
Immediately, press U (for uppercase) OR L (for lowercase) with Ctrl still being pressed, then release all pressed keys.
Method 2 (3 keys pressed at a time)
Press Ctrl and hold.
Now press K.
Without releasing Ctrl and K, immediately press U (for uppercase) OR L (for lowercase) and release all pressed keys.
Please note: If you press and hold Ctrl+K for more than two seconds it will start deleting text so try to be quick with it.
I use the above shortcuts, and they work on my Windows system.
As a bonus for setting up a Title Case shortcut key Ctrl+kt (while holding Ctrl, press k and t), go to Preferences --> Keybindings-User
If you have a blank file open and close with the square brackets:
[ { "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" } ]
Otherwise if you already have stuff in there, just make sure if it comes after another command to prepend a comma "," and add:
{ "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" }
For Windows OS
For Uppercase
CTRL + K + U
For Lowercase
CTRL + K + L
For others needing a key binding:
{ "keys": ["ctrl+="], "command": "upper_case" },
{ "keys": ["ctrl+-"], "command": "lower_case" }

Resources