Enable semantic comletion TabNine in Sublime Text(Entering a command in Sublime Text) - autocomplete

As described in This Guide , semantic completion is to be enabled by entering ´TabNine::sem´ into the Text Editor. I restarted Sublime Text and entered this in the Comand Palette; yet no reaction.
When using Sublime- Text, TabNine reminds the user to activate this to enable the python specific autocompletion.
Where to enter this Line : ´TabNine::sem´ ?

Enter it in the document itself. The TabNine::* commands are "magic strings" that TabNine picks from the document as you type.

Related

Where can I enable or implement full-line and file name completion in VSCode?

In Vim, I love using:
Ctrl+X, Ctrl+F to trigger code completion using local file names.
Ctrl+X, Ctrl+L to trigger completion of full lines from open files.
I'd like to have the same features in VSCode. A Google and SO search did not show me any extensions that provide this feature.
Is there an VSCode extension that does this?
What is the best way of adding this feature? Should I write my own extension or is there an existing commonly used "intellisense" extension where I easily contribute these features?
The extension Path Autocomplete does file name completion.
If you search for autocompletion in the marketplace there are other extensions as well which might provide the line completion that you're looking for.
I use vscode.vim extension which is a vim emulator for VSCode. It has most of the features of vim, including the completion of full lines from open files with the same keyboard shortcut: Ctrl+X, Ctrl+L.

How to copy formatted code to clipboard in VS Code

In Visual Studio Code, is it possible to copy selected code to the clipboard with the syntax highlighting? I want to be able to paste into a Word doc or e-mail.
Regular Visual Studio does this by default (it puts both text and RTF formats on the clipboard).
I see that I can "Toggle Developer Tools" and locate the div (with class="view-lines") that has the code, so maybe there is a way to use that chunk of html, but I don't see an easy way to just copy the formatted code and paste into Word or an e-mail.
According to the 1.10 changelog : https://code.visualstudio.com/updates/v1_10#_copy-with-syntax-highlighting
It is now possible with that command : editor.action.clipboardCopyWithSyntaxHighlightingAction
Type/paste it in command box (ctrl+shift+p or F1)
Use the command "Copy With Syntax Highlighting".
Highlight the code
Ctrl + Shift + p to open the Command Palette
Type / Select Copy With Syntax Highlighting
It is available since VS Code v1.43 (Feb 2020), as #robert4 mentioned in comment.
Ran into this question as I was trying to copy and paste with syntax highlighting from Visual Studio (not Code). As far as I see, it is not possible OOTB.
I am using Visual Studio Enterprise 2019 (v16.7.4), trying to copy C# code (tried CSHTML also).
BUT, I found this article, which seemed to indicate that Visual Studio Code OOTB would Ctrl+C Ctrl+V right into an Outlook email or Word document without a plugin or fancy keyboard shortcut, and I was successful!
I am using Visual Studio Code v1.49.2, and copying C# code. Copying CSHTML also worked.
I took the suggestion above, went to the command pallet, clicked on the clog to the right, and used ctl + c for the key bindings. Now, when I copy from VSCode to OneNote, I get the source formatting. It works!

Plain text autocomplete in Atom (Github)

I've auto-complete and auto-complete+ installed on the latest version of Atom. Unfortunately, these packages don't auto-complete or suggest words while typing plain text as open office or some sublime packages do.
For instance, if I am typing repo and the word repository already appears in the current document, I would like to have some sort of auto-completion / intellisense to show up.
I looked, in vain, for package in atom achieving that.
So, the question is, do you know any package to do that in atom or any intuitions on how to create it ?
Thanks.
Actually the autocomplete-plus package should do exactly what you want. By default it looks in the current document, but you can enable "Include completions from all buffers" to get completions from all open buffers.
A few suggestions why it does not work:
Make sure "Enable built-in provider" is activated in the autocomplete-plus settings
The package let's you choose between two "Default Providers", Fuzzy and Symbol. Try both (for me Symbol works fine)
Make sure the file type you use does support autocompletion and is not blacklisted, see this question for details
Maybe the autocomplete package interferes with autocomplete-plus. Try disabling or uninstalling autocomplete

Vscode attach debug output window

I do not want Vscode to open up another window while debugging. Is there a way to attach this window inside the IDE?
If the above is impossible, is there a way to choose a more usable terminal? The default terminal doesn't allow for text selection which makes it unacceptable.
Since VSCode is not an IDE, we do not have a built-in terminal.
I tried the terminals on OS X, Linux, and Windows. They all allow me to select and copy text (however on Windows it is through the 'Edit' > 'Mark' mechanism).
Andre Weinand, Visual Studio Code
The vscode forums have a request for an integrated terminal with a number of upvotes, i'd advise adding your voice to the chorus.
It's a must to output the debug console writes to an attached panel in Visual Studio Code. Click an highlight a word in the debug output console text to do a global project search to find all code containing that string. A common thing like tagging error blocks with a unique ID that gets output to the console when the error happens. Full text search of the project source code tree for the ID...

Sublime text plugins operate irrespective of the file type

I am new to Sublime text. I have been installing a lot of plugins lately.
One thing that I realized is that all the plugins if assigned a keyboard shortcut would perform their operations irrespective of the type of file type.
For example: if I have a plugin such as HTML tidy and if i have a keyboard shortcut say CTRL+K. Now if I open a .js file and press CTRL+K the HTML Tidy plugin somehow ends up executing.
Is this the expected behavior or have I configured something incorrectly?
That's the behavior defined by the implementation of the plugin and the associated key binding. I would recommend creating an issue or making a pull request for that plugin where the file type is checked. They can also add a context to their keybindings to only run under a specific scope. You can create user keybindings with a context to run the proper command. But understand that if it does not match a context for your keybinding, it will fall back to whatever the plugin is defined as. Let me know if I can clarify anything.