oleg-shilo / cs-script.npp

CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64)
MIT License
248 stars 52 forks source link

How to Add missing `using` using hotkeys? #57

Closed it19862 closed 9 months ago

it19862 commented 3 years ago

I'm trying to add the missing using with: Ctrl + . , Alt + U. Nothing is happening. I have a code

using System;
using System.Diagnostics;

namespace Folder_NS_02
{
    public class Test
    {  
  void Main(string[] args)
  {
   List<string> ItemsLst = new List<string>(); 
  }  
 }
}

If I understand correctly, then after pressing Ctrl + . , Alt + U CS-script.npp will add to the code the line using System.Collections.Generic;. I have nothing going on.

Questions.

  1. Am I doing everything right?
  2. How do I do this correctly?
oleg-shilo commented 3 years ago

The UX is very similar to the one that you have in VS:

Ctrl+.

notepad2

Alt+U

notepad