Notepad++ plugin - How to add coffeescripts plugin - plugins

I'm trying to add coffeescripts plug in to notepadd++. I found the plugin from here. There is no .dll file in the zip file i downloaded from the link above. When I read the ReadMeFile, it says.
# CoffeeScript syntax highlighting for Notepad++
***
Will syntax highlight files with extensions of coffee, coco, and CAKEFILE using Notepad++'s user-defined language(within its limits).
![An example Screenshot](/blakmatrix/CoffeeScript_notepad_UDL/raw/master/example_screenshot.png)
## Deployment
1. If you don't have an userDefineLang.xml file already, you can drop this file among your other configuration file, in the Notepad++ Install Folder. It should be named userDefineLang.xml.
2. Otherwise, open both the existing and new file.
- Select all of the new file, copy, and paste at the end of the current file.
- This should have created a spurious </Notepad_Plus><Notepad_plus> pair in the middle, each tag on a line by itself. Remove these two consecutive lines.
- Close Notepad++.
Your Languages menu should show the newly added language at the bottom, next time you launch Notepad++.
***
### Contact
Contact me at blakmatrix#gmail.com for any questions or tips!
Can anyone help me to install the plugin. Didnt understand what the readme saying.
Thanks

I just ran into a similar issue. My solution with Notepad v6.3.3 (may not be optimal):
Download the CoffeeScript.xml from that Git repo. Make sure you unzip it if it is zipped.
Open up Notepad++. Under the Languages menu, select "Define your language..."
At the top, click the Import button. Navigate to the CoffeeScript.xml, select it, and select Open. Press the x in the top-right corner of the dialog to close it.
Restart Notepad++. You should see CoffeeScript at the bottom of the Languages menu. Any .coffee files you now open should have syntax coloring.

Related

How to change folder that opened by default in VSCode?

I have small problem with VSCode folder, that opened by default.
Problem description: I start new instance of VSCode (trough File->New Window), and then if I choose File->Open Folder it opens dialog with my Windows user folder as starting point (C:\Users\MyUser)
Question: How can I change that folder in settings (if it possible)? So by default it will show as start point for example D:\development\ ?
At the time I write this answer, this is not possible. There are two problems on Windows, and one problem on Mac and Linux:
VS Code does not provide a default path to the file dialog 1. It does remember the last folder that you opened a file in, but that path cannot be used as a default because it is overwritten constantly.
On Windows only, Electron ignores the default path when creating a file dialog if the default path is a directory 2.
An extension also cannot solve this, because extensions are not allowed to modify the File menu 3.
I think the best option at this point is to pin a folder to the Quick Access area in Windows Explorer, as suggested in a comment, or to put an actual shortcut in the user profile folder.
Workspaces and File > Open Recent may also be helpful if you often open the same folders.
Your main problem is that you are unable to open your specific folder in VScode.
To solve that you can simply open the terminal/cmd in that specific window by just typing cmd in your search bar or just by pressing shift+right-click in that folder.
Now your cmd is open and you just have to type "code ." in the cmd and press enter to open the current folder in your VSCode.
In case that code . doesn't work for you then you have to add the Vscode in the environment variables of your windows.
Visual Studio doesn't provide a specific feature to open a specific path. But there is a solution to your problem. You are saying that you want D:\develpment as a default when you open VS Code. You can go to that specific directory or create shortcut to desktop then click right click on that folder and then click on open with code. If you didnot see open with code then reinstall your VS code and check on open with code when you are reinstalling VS Code.
make a shortcut on the desktop for vscode and then modify it and add the folder after the .exe command. This will default open that folder when you double click on it.
Visual Studio Code can be installed in two ways - User setup and System setup. I strongly believe you have User setup installed in your PC. Try re-installing it System-wide. That should probably fix your problem.
For more information: https://code.visualstudio.com/docs/setup/windows#_user-setup-versus-system-setup
PS: A lot more information is needed, you can share a screenshot of the window and elaborate more on it.

Script editor does not open in Spark AR Studio

I have installed Spark AR Studio on Windows. I was able to work with basic effects. However when I tried to create a Script asset and open it up, it keeps failing with the error code 800A03EA. Source is shown as Microsoft JScript compilation error. I can see the file using Notepad and it only has two line in there.
// How to load in modules
const Diagnostics = require('Diagnostics');
const Scene = require('Scene');
SparkAR Studio tries opening your scripts with the default editor assigned to .js files on your operating system.
Assign Visual Studio Code / Sublime / etc. to be your standard way of opening .js files on Windows and SparkAR will open it when you click on it
To set default editor for Js files you can just create empty js file - right click on it - choose default program to open and go to your favourite editor (sublime, vscode, etc). That's all
Set Atom/VS code/Sublime as your default JS editor.
Right click on the script.js file and a menu window will open. Click on 'Reveal in Explorer' and it will take you to the location. There, right click on the script.js file and open it with any other editor (e.g. Atom).

Why does "Open with Code" appear twice in the context menu?

When I right click a file, I see Open with Code twice. I know one of them is from the actual Visual Studio Code installation. When I uninstalled VSCode, I noticed the the number 1 in the screenshot below remained. Where is it that coming from and how do I get rid of it?
It looks like you have a lingering context menu item from a previous Visual Studio Code install. Try the following:
Open your registry editor. You can find this by searching for "regedit" in the Windows search bar.
Navigate to Computer\HKEY_CLASSES_ROOT\Directory\shell
Look for the VSCode folder.
If you see two VSCode folders at this point, open them up and see if one is pointing to a Code.exe that no longer exists. If that's the case, simply delete the folder for the nonexistent install and your problem should be fixed.

Open the same directory twice

On command line, I could open a directory like:
code .
Now, I want two of the identical diretory opened and displayed in another window.
(It's not spliting the editor)
Then, I tried again.
code .
Nothing happened.
There's still one directory opened.
How to achieve such a task?
You can do this with the following ways:
1- Manually open a new window (ctrlshiftn) and go to:
File > Add folder to Workspace. Then just select the folder.
2- Open the command panel (ctrlshiftp) enter dupl and hit enter that will duplicate the current workspace in a new window
*dupl is just a filter for the complete command that is: Workspaces: Duplicate Workspace in New Window thanks to dipnlink comment
Source: https://code.visualstudio.com/docs/editor/multi-root-workspaces
*Done in windows (10), vscode (1.35.1)
In the latest version, it is actually much simpler.
In a window of the project you want to duplicate, open the command panel (Command + Shift + P in Mac or Ctrl + Shift + P in Ubuntu), then type dupl (and select Workspaces: Duplicate As Workspace in New Window), this will duplicate your workspace in a new window. Now you can have 2 windows of the same project at the same time.
click
file > duplicate workspace
Click Add workspace folder... and open the same folder. Works for me, other solution doesn't work, just jump focus to another window.
As far as I know, the accepted answer is not correct as C14L indicates.
It can be done by opening a different folder that includes the folder you're working in. So say we have /project and /project/src and /project/build, you're probably interested in having src open in two instances of VSCode, which you can achieve by opening /project and /project/src.
In addition to accepted answer, here's the trick if you want to open same project in two different windows but showing two different git branches:
Copy the project folder and open that folder!
If you want two windows in two different git branches then this simple trick works. I don't know of any other solutions.
The accepted answer works, but I don't really like the fact that the folder is opened into an unnamed workspace, and upon closing window, we will be prompted to save that workspace. I am expecting more like Sublime Text like behavior.
Luckily there is VSCodium, VSCode's twin/clone without telemetry to Microsoft. So I ended up opening the folder once in either VSCode or VSCodium, then a second time in the other. This so far worked quite well for me.
I wanted to do this for working in two branches side by side and then I realized it was not possible because you cannot have two active branches in exact same git repo folder.
So, if you are looking to do the same, you should instead just make a copy of a folder and switch to another branch there. Options described in other answers will not work for this scenario due to fundamental way git works.

How to access Visual Studio Code extension settings

Got myself Visual Studio Code. I've installed a Uncrustify extension to make my files be formatted when I edit them. I wanted to make it format my files on save, but I cannot open like Options menu for this extension or something like that. The author gives this screenshot:
But I cannot reach that menu. When I click on this little gear circle near the extension under the Extensions tab, it just pops up a menu with: Disable (Workspace), Disable (Always), Uninstall. I can only edit 4 things, like my .cfg file path under Ctrl+Comma settings, but that's not what I am searching for, and it's not what is on this screen provided by author
I guess I am not only asking about this particular extension, but generally for extension settings in this editor.
Many ways mentioned here in an issue created available on VSCode repository: Allow to change settings from Extensions editor.
On Windows, I could be able to change settings by going to:
File -> Preferences -> Settings -> Extensions.
Dont know if you figured it out yet or not but maybe for someone who comes here to find an answer.
Step 1: Press ctrl+alt+p to open the command pallet.
Step 2: Search and execute this command Uncrustify: Open config file
If your config file has not been created, then before step 2 you must execute Uncrustify: Create default config file command.
Anyways, these instructions are present their in Details section of the extension.